By Daniel Du
In MapGuide Ajax viewer, I can open a new window if I specify the value for "Display result in this target interface" to "New window" or "Specified frame" in Web layout editor, but it always opens a 500*500 window without toolbar. How can I resize the window or change its appearance when it is opened?
The solution is simple. It can be edited in <WebExetension Installation folder>\www\viewerfiles\ajaxmappane.templ
For AIMS2012: C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2012\www\viewerfiles\ajaxmappane.templ
For MapGuide 2011: C:\Program Files\Autodesk\MapGuideEnterprise2011\WebServerExtensions\www\viewerfiles\ajaxmappane.templ, etc.
Edit the source code at about line 3785:
//the code can be modified here, //if necessary, to control the size and appearance of the //new window. e.g. window.open(url, targetFrame, "toolbar=no,width=500,height=500,resizable,scrollbars"); //window.open(linkURL, targetFrame);