[fusion-users] Get Fusion object from page outside Fusion interface

Tómas Guðmundsson tomas at snertill.is
Mon Jun 29 06:33:33 EDT 2009


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: fusion-users-bounces at lists.osgeo.org [mailto:fusion-users-bounces at lists.osgeo.org] On Behalf Of Matteo
Sent: 29. júní 2009 10:30
To: fusion-users at lists.osgeo.org
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
fusion-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users


More information about the fusion-users mailing list