[Phpmyadmin-devel] URL parameter separator and Jquery - #3733

Marc Delisle marc at infomarc.info
Sun Apr 13 15:41:13 CEST 2014


Le 2014-04-13 09:30, Hugues Peccatte a écrit :
> Hi,
> 
> I'm working on bug ticket http://sourceforge.net/p/phpmyadmin/bugs/3733/
> I already replaced all & in PHP files by the separator defined in php.ini.

Hugues,
are you using PMA_URL_getArgSeparator() ?

> I also replaced a part of & in JS files (almost all). But I still have
> an issue… with Jquery method $.get…
> 
> This method have many parameters, and one could be a JSON object of URL
> parameters.
> Something like this:
>     var params = {
>         aPath: $expandElem.find('span.aPath').text(),
>         vPath: $expandElem.find('span.vPath').text()
>     };
> And this:
> $.get(url, params, function (data) {
>> });
> 
> Imagine that you set the arg_separator to "|" in your php.ini, the
> result will be:
> - initial URL: http://myurl.com/mypage.php?p1=v1|p2=V2
> - params: var params = {
>         p3: "v3",
>         p4: "v4"
>     };
> - generated URL: http://myurl.com/mypage.php?p1=v1|p2=V2&p3=v3|p4=v4
> 
> As you can see, there is a & between the initial URL and the added
> parameters…
> 
> Do you know a way to manage the arg_separator used by Jquery please?
> 
> Thanks a lot !
> Hugues.
> 
> 
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment 
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> 
> 
> 
> _______________________________________________
> Phpmyadmin-devel mailing list
> Phpmyadmin-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
> 


-- 
Marc Delisle




More information about the Developers mailing list