[SOLVED]Help with passing Special Characters using urlencode

[SOLVED]Help with passing Special Characters using urlencode

Hi all,

I have the following:
$("input").click(function(){
    var update = $(this).attr("value");


which is grabbing the value of my submit buttons.

Then I have:
var str = "update="+update+"&"+$(this).serialize();


which I am using as the data in my $.ajax POST.


All is working great - except when I have special characters in the Submit button name. Like so - Apply & Save

So - I came up with:
$(".actionBar input").click(function(){
    var update = $(this).attr('value').urlencode();


Which seems to work - except now - when the submit button is pushed - $.ajax seems to be bypassed - and I'm taken to the processing scripts page - instead of getting it's response.

Any suggestions?
    • Topic Participants

    • john