[mapguide-users] Calling viewer api functions from the main page

uXuf yousuf.hassan at gmail.com
Thu Jan 10 15:51:42 EST 2008


Okay thanks. parent.viewerFrame.mapFrame works like a charm!

uXuf


Ivan Milicevic-3 wrote:
> 
> try parent.viewerFrame.mapFrame.Refresh(); od
> window.frames.mapFrame.Refresh();
> 
> ________________________________
> 
> From: mapguide-users-bounces at lists.osgeo.org on behalf of uXuf
> Sent: uto 8.1.2008 22:43
> To: mapguide-users at lists.osgeo.org
> Subject: [mapguide-users] Calling viewer api functions from the main page
> 
> 
> 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
> document.getElementById("viewerFrame").GetMapFrame() (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: Calling viewer api functions from the main
> page
> <http://www.nabble.com/Calling-viewer-api-functions-from-the-main-page-tp14699670s16610p14699670.html> 
> Sent from the MapGuide Users mailing list archive
> <http://www.nabble.com/MapGuide-Users-f14845.html>  at Nabble.com.
> 
> 
>  
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Calling-viewer-api-functions-from-the-main-page-tp14699670s16610p14743626.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list