Get Fusion object from page outside Fusion interface

3 messages Options
Embed this post
Permalink
Matteo

Get Fusion object from page outside Fusion interface

Reply Threaded More More options
Print post
Permalink
Hi all,
  I need to access to Fusion object from a page outside fusion interface.

Example  my index.php page contain this code
<frameset name="frameset1" rows="*,200">
<frame src = "/mapguide2010/fusion/flexviewer.php?TEMPLATE=google_slate&SESSION=<?= $mgSessionId ?>&APPLICATIONDEFINITION=<?= $weblayout ?>" name="mgFrame" scrolling="no" frameborder="no" marginheight="0" marginwidth="0">
<frame src = "alert.php" name="AlertFrame" scrolling="no" frameborder="no" marginheight="0" marginwidth="0">
</frameset>

How I can access to Fusion from AlertFrame? I tried top.mgFrame.Fusion but I get a error.

Please help me
Regards,
Matteo
Tómas Guðmundsson

RE: Get Fusion object from page outside Fusion interface

Reply Threaded More More options
Print post
Permalink
Hi Matteo,

At first it sounds like you're having problems with javascript and frames.

This is a syntax for accessing frame 0 (first frame).

var frameNo = 0;
var frame = window.frames[frameNo];

So therefore you should look into this. A good tool to use (if you're not already using it) is FireBug an addon for Firefox. www.getfirebug.com. Also, you could take a look at this article to help you to get to grips with frames and javascript.

http://www.west-wind.com/Weblog/posts/589454.aspx

After making sure it is not your javascript code not being able to access other frames, let us know.

-Tómas Guðmundsson
Programmer, Snertill Iceland.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Matteo
Sent: 29. júní 2009 10:30
To: [hidden email]
Subject: [fusion-users] Get Fusion object from page outside Fusion interface


Hi all,
  I need to access to Fusion object from a page outside fusion interface.

Example  my index.php page contain this code
<frameset name="frameset1" rows="*,200">
<frame src =
"/mapguide2010/fusion/flexviewer.php?TEMPLATE=google_slate&SESSION=<?=
$mgSessionId ?>&APPLICATIONDEFINITION=<?= $weblayout ?>" name="mgFrame"
scrolling="no" frameborder="no" marginheight="0" marginwidth="0">
<frame src = "alert.php" name="AlertFrame" scrolling="no" frameborder="no"
marginheight="0" marginwidth="0">
</frameset>

How I can access to Fusion from AlertFrame? I tried top.mgFrame.Fusion but I
get a error.

Please help me
Regards,
Matteo
--
View this message in context: http://n2.nabble.com/Get-Fusion-object-from-page-outside-Fusion-interface-tp3173612p3173612.html
Sent from the Fusion Users mailing list archive at Nabble.com.

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Paul Deschamps

Re: Get Fusion object from page outside Fusion interface

Reply Threaded More More options
Print post
Permalink
In reply to this post by Matteo
Hi Matteo,

It's been a while since I used "frames" in any application i've developed though here's some pointers. If I am correct:

window.frames <- contains an array of all the frames in the Browser window.

window.frameset1.document <- the document Obj for the "frameset1"
window.AlertFrame.document <- the document Obj for the "AlertFrame"

Inside the AlertFrame frame you can reference the parent obj

parent.window.frameset1.document

Frames are a little "tricky" because their are a lot of security constraints and cross browser issues. Personally I blessed the day when frames became a thing of the past.

Hope this helps

Cheers

Paul..




On Mon, Jun 29, 2009 at 6:29 AM, Matteo <[hidden email]> wrote:

Hi all,
 I need to access to Fusion object from a page outside fusion interface.

Example  my index.php page contain this code
<frameset name="frameset1" rows="*,200">
<frame src =
"/mapguide2010/fusion/flexviewer.php?TEMPLATE=google_slate&SESSION=<?=
$mgSessionId ?>&APPLICATIONDEFINITION=<?= $weblayout ?>" name="mgFrame"
scrolling="no" frameborder="no" marginheight="0" marginwidth="0">
<frame src = "alert.php" name="AlertFrame" scrolling="no" frameborder="no"
marginheight="0" marginwidth="0">
</frameset>

How I can access to Fusion from AlertFrame? I tried top.mgFrame.Fusion but I
get a error.

Please help me
Regards,
Matteo
--
View this message in context: http://n2.nabble.com/Get-Fusion-object-from-page-outside-Fusion-interface-tp3173612p3173612.html
Sent from the Fusion Users mailing list archive at Nabble.com.

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users



--
   Paul Deschamps
   Applications Specialist
   DM Solutions Group Inc.

   Office: (613) 565-5056 x28
   [hidden email]
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca
   


_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users