[mapguide-users] Popup variable in AJAX viewer Pages

Alain Lebatard alain.lebatard at autodesk.com
Thu Mar 1 20:28:40 EST 2007


The POPUP parameter tells the target command if it is running in an
embedded frame - such as the task pane - or in a popup window. It's
useful when the page needs to access the main frame, because the way to
reference the main frame from the page will change depending on whether
it runs in a popup or not. If your page does not need to access the main
frame, it has no use for the POPUP parameter.

 

There are several commands where the POPUP parameter is used, and you
can find example of this in the buffer command. The buffer page needs to
access the main frame to get the current list of layers. BufferUI.php
uses the value of the POPUP parameter to initialize the variable 'popup'
in the Javascript code for this page (see BufferUi.templ). The function
GetParent() of that script uses 'popup' to reference the main frame
accordingly.

 

Alain

 

  _____  

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Scott
Hameister
Sent: Thursday, March 01, 2007 4:46 PM
To: 'MapGuide Users Mail List'
Subject: [mapguide-users] Popup variable in AJAX viewer Pages

 

What does the popup parameter in all of the viewerAPI pages do...I set
it to 1 and Nothing seems to change???????

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070301/bbab3d1a/attachment.html


More information about the mapguide-users mailing list