[kw-pm] jQuery / Perl question
broadswd at gmail.com
Mon Aug 30 16:24:00 PDT 2010
CGI.pm (or Apache request object if under mod_perl) query and form
handling functions automatically handle all of that.
On 30 August 2010 15:29, Robert Pike <roberthpike at yahoo.com> wrote:
> Hi all,
> I'm attempting to make an Ajax call to a perl application residing on my computer.
> One of the fields I'm adding onto the URL to send may have an ampersand in it. I want to encode any special characters to put onto the URL and then have those values be accessible within the perl application on the server. I'm using jQuery's serialize method to do the conversion and the value passed in (i.e. something&something) is being converted "properly" (i.e. something%26something).
> On the server, however, the value accepted looks like somethingsomething (disregarding the encoded & being passed). I'm creating a CGI object within the Perl script to handle the form data coming in.
> Can explain to me what needs to be done (using this technique) to accomplish the task of converting special characters at the client end to then pass successfully to the server? Or is there better way of accompishing the same task that you can suggest?
> Thanks in advance for any helpful advice / suggestions.
> kw-pm mailing list
> kw-pm at pm.org
More information about the kw-pm