[mapguide-users] Calling viewer api functions from the main page
jackie.ng at aecsystems.com.au
Tue Jan 8 19:14:31 EST 2008
With frame/iframe objects, you cannot use document.getElementById() to access
the functions within that object.
As already mentioned. Reference the frame by its name. Make sure you have
set the "name" attribute of the viewer frame.
> Hi all,
> I am trying to access the Viewer API functions from the main page of my
> application, i.e. the page that has the WebLayout embedded (or the
> iframe). I cannot seem to grab the exact frame from which these functions
> would be accessible. I tried using
> (viewerFrame is the name of the iframe) putting it in the onload function
> of the iframe but it returns "Object doesn't support this property or
> method". Can anyone help me in this regard?
View this message in context: http://www.nabble.com/Calling-viewer-api-functions-from-the-main-page-tp14699670s16610p14702529.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users