[mapguide-users] error when using buffer or select within in fusion embed into an iframe

Wilson Herrera wherrera at pccadpanama.com
Mon Jul 19 12:33:40 EDT 2010


good day.

i have been experiencing strange problems when trying to use a buffer in
fusion.

the error only appears when i use the flexible layout, within an iframe,
debugging the error in firefox, show this piece of code as part of the
problem:

function InitDocument()
{
 var map = GetParent().Fusion.getMapByName(mapName);
 map.reloadNamedMap(mapName);
 if (!errors) {
 Back();
 }
}

in buffer.php (i think is a internal call to common.php)

but, if is use the weblayout without an iframe, it works as expected.

since this change could affect many other applications who arent inside an
iframe, what kind of solution i could use to avoid this error?

the error as appears in firebug is:

GetParent().Fusion is undefined
[Break on this error] var map = GetParent().Fusion.getMapByName(mapName); 

i think removing getparent form the code will make it work, but then it will
affect the non - embed applications.

also, i tried to find this code in fusionsf-compressed, to no avail, where
should i find it given the case?

why i am using an iframe? to embed some logic outside tooltips and to
integrate some plugins into the interface (like growl for notifications and
the like)

exceuse me for the amount of questions, but im a starter still.

thanks for your help 


-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/error-when-using-buffer-or-select-within-in-fusion-embed-into-an-iframe-tp5312823p5312823.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list