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

Fusion trac_fusion at osgeo.org
Wed Dec 17 18:47:15 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 chrisclaydon):

 I changed the execute method in InvokeURL.js to this, and it fixed the
 problem. It doesn't add the extra params when the target is the task pane,
 since the setContent() method adds them anyway:
 {{{
     execute : function() {
         var url = this.sBaseUrl;
         //add in other parameters to the url here

         var map = this.getMap();
         var taskPaneTarget = Fusion.getWidgetById(this.sTarget);
         var params = [];
         if ( taskPaneTarget == null ) {
             params.push('LOCALE='+Fusion.locale);
             params.push('SESSION='+map.getSessionID());
             params.push('MAPNAME='+map.getMapName());
         }
         params = params.concat(this.additionalParameters);
         if (url.indexOf('?') < 0) {
             url += '?';
         } else if (url.slice(-1) != '&') {
             url += '&';
         }
         url += params.join('&');
         if ( taskPaneTarget ) {
             taskPaneTarget.setContent(url);
         } else {
             var pageElement = $(this.sTarget);
             if ( pageElement ) {
                 pageElement.src = url;
             } else {
                 window.open(url, this.sTarget, this.sWinFeatures);
             }
         }
     }
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/195#comment:2>
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