Change your setContent function in taskpane.js file under widgets to this:

setContent: function (url) {
            if (this.nCurrentTask < this.aExecutedTasks.length) {
                this.aExecutedTasks.splice(this.nCurrentTask, 
this.aExecutedTasks.length - this.nCurrentTask);
            }
            var map = this.getMap();

            var params = []; params.push('LOCALE=' + Fusion.locale); 
params.push('SESSION=' + map.getSessionID()); params.push('MAPNAME=' + 
map.getMapName()); if (url.indexOf('?') < 0) {

                url += '?';

            } else if (url.slice(-1) != '&') {

                url += '&';

            } url += params.join('&');


            this.aExecutedTasks.push(url);
            ++this.nCurrentTask;
            this.iframe.src = url;
            this.iframe.taskPaneId = this.widgetTag.name;
            this.updateButtons();
        },

Brian  Berdel
McMahon Associates, Inc.
p: 215.283.9444 x 260
www.mcmtrans.com
-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Greg
Sent: Friday, September 16, 2011 1:21 PM
To: [email protected]
Subject: [mapguide-users] Fusion Task Pane without session variable

I am opening the task pane in the Fusion viewer when my page loads.  The 
initial URL for my task pane is an .aspx page.  The page seems to load fine in 
my task pane.  The script shown below doesn't work when the task pane is opened 
but works if I click the Home button in the task pane:

String sessionId = Request.QueryString["SESSION"]; String mapId = 
Request.QueryString["MAPNAME"];

Is there a way to get these parameters when the task pane opens?  Or maybe a 
java script method to use on the task pane after it opens that would be the 
equivalent of clicking the Home button?

MGOS 2.2
Fusion Viewer
Windows 7 64 bit
IIS
ie 9 or google chrome browser

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Task-Pane-without-session-variable-tp6801587p6801587.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Important notice to recipients:
Copies of documents that may be relied upon by you are limited to the printed 
copies (also known as 'hard copies') that are signed and sealed by the Engineer 
and/or Land Surveyor. Files in electronic formats, or other types of 
information furnished by the Engineer and/or Land Surveyor to you such as text, 
data or graphics are for your convenience only. Any conclusions or information 
obtained or derived from such electronic files will be at the user's sole risk. 
When transferring documents in electronic formats, the Engineer and/or Land 
Surveyor makes no representation as to long-term compatibility, usability, or 
readability of the documents resulting from the use of software application 
packages, operating systems or computer hardware differing from those used by 
McMahon Associates, Inc. at the beginning of the project.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to