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. - Jackie uXuf wrote: > > 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 > <code>document.getElementById("viewerFrame").GetMapFrame()</code> > (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? > > Thanks! > uXuf > -- 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. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users