Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.8

Bug #12129 Error with URL generated using HTML_AJAX_Helper::setupAJAX()
Submitted: 2007-09-27 13:19 UTC
From: sionp Assigned: jeichorn
Status: Closed Package: HTML_AJAX (version 0.5.2)
PHP Version: 4.4.7 OS: Linux
Roadmaps: 0.5.3    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 45 - 10 = ?

 
 [2007-09-27 13:19 UTC] sionp (Sion Pennant)
Description: ------------ If the $serverUrl you specify already contains a parameter, then the URL generated by HTML_AJAX_Helper::setupAJAX() may contain multiple question marks ('?') within the parameter list. (See test script for example). Test script: --------------- <?php $ajaxHelper = new HTML_AJAX_Helper(); $ajaxHelper->serverUrl = 'ajax_server.php?id=123'; echo $ajaxHelper->setupAJAX(); /* Outputs something like the following: <script type="text/javascript" src="ajax_server.php?id=123?client=Util,Main,Request,HttpClient,Dispatcher,Behavior,Loading,JSON,iframe"></script> (Note the two '?'s in the src attribute). */ ?> Expected result: ---------------- <script type="text/javascript" src="ajax_server.php?id=123&client=Util,Main,Request,HttpClient,Dispatcher,Behavior,Loading,JSON,iframe"></script> Actual result: -------------- <script type="text/javascript" src="ajax_server.php?id=123?client=Util,Main,Request,HttpClient,Dispatcher,Behavior,Loading,JSON,iframe"></script>

Comments

 [2007-12-03 21:38 UTC] jeichorn (Joshua Eichorn)