[mapguide-users] Subject: Best practices for running Fusion within frames

Warren Medernach wmedernach at gmail.com
Thu Jul 29 02:54:29 EDT 2010


Hey Gordon,
Thanks so much for the tips and info!

Warren

On Wed, Jul 28, 2010 at 7:18 PM, Gordon Luckett <
gordon.luckett at arrowgeomatics.com> wrote:

>  Hi Warren,
>
> I usually use iframes (and always call it the same thing  “iFrameMap”)
>
>
>
> I have found some issues with targeting some of the searches and had to
> modify the code to find my “iFrameMap” within FUSION.
>
>
>
> I make use of the \www\fusion\layers\MapGuide\MapGuideViewerApi.js file and
> modify the lines that show:
>
>
>
> var Fusion = window.top.Fusion;
>
>
>
> to
>
>
>
> var Fusion = window.top.iFrameMap.Fusion;
>
>
>
> and that usually works really well.
>
>
>
>
>
> I use the iFrameMap for the AJAX Basic version to and usually pass a
> parameter to the JS files with VTYPE=’AJAX’ or VTYPE=’FUSION’ so I know what
> viewer API to use.
>
>
>
> Hope that helps.
>
>
>
>
>
>
>
> Hey Jason,
>
> Sorry, my bad...  I should know better to include version details...  It's
> been a long day :-)
>
> I'm using MGE 2011.
>
>
>
> I was just more curious what others are doing wrt Fusion.  Are people using
> iFrames, or Frames, or just building their wrappers?
>
>
>
> Thanks.
>
>
> Warren
>
> On Wed, Jul 28, 2010 at 5:35 PM, Jason Birch <jason at jasonbirch.com> wrote:
>
> Are you using a recent version? I think I saw some commits that change
> the way widgets find their parent fairly recently (ie, could be bug).
>
>
>
> On 2010-07-28, Warren Medernach <wmedernach at gmail.com> wrote:
> > Hello all,
> > I'm trying to use the Fusion viewer within a frameset and I'm getting
> > some weird results using different browsers with 'out-of-the-box'
> > functionality.
> >
> > For example, I have a Search function defined that works fine when I run
> it
> > in FireFox or Chrome, but in IE it fails to select and zoom to the object
> > and a script error is thrown stating that it cannot find Fusion?
> >
> > Are there any 'best practices' or suggestions to using Fusion within a
> > frameset?
> >
> > Warren M.
> >
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100729/ef0d92e8/attachment.html


More information about the mapguide-users mailing list