[fusion-trac] #195: Request.QueryString Returns Null or Nothing Parameters

Fusion trac_fusion at osgeo.org
Wed Dec 17 20:47:07 EST 2008


#195: Request.QueryString Returns Null or Nothing Parameters
-----------------------------------+----------------------------------------
 Reporter:  bberdel                |         Owner:  madair
     Type:  defect                 |        Status:  new   
 Priority:  P2                     |     Milestone:  2.0   
Component:  Core                   |       Version:  1.1.0 
 Severity:  Major                  |    Resolution:        
 Keywords:  parameter querystring  |   External_id:        
    State:  New                    |       Browser:  All   
       Os:  All                    |  
-----------------------------------+----------------------------------------
Comment (by bberdel):

 Thanks for the quick reponses.  When using invokeScipt the parameters do
 come up for a new window and the task pane withoug changing the execute
 method.  I just verified that it does work.  However my problem was when
 calling the parameters from the initial task pane url.   Your post pointed
 me in the right direction in that the following code was missing from the
 TaskPane.js

   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('&');

 Thanks, that did it, but I guess the code should be verified in version 2

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/195#comment:3>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list