[jQuery] Re: url encoding for GET

2007-06-17 Thread Mike Alsup
But I did that by using the example code given on docs site Yes, that example is correct. See the difference: data: "url="+url,num="+num, data: "name=John&location=Boston", As for the question about encoding, if the "data" option is a string it is assumed that it is already encoded. If i

[jQuery] Re: url encoding for GET

2007-06-17 Thread joomlafreak
But I did that by using the example code given on docs site http://docs.jquery.com/Ajax $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); On Jun 16, 8:24 am, "Mike Alsup" <[EMAIL PROTEC

[jQuery] Re: url encoding for GET

2007-06-16 Thread Mike Alsup
Your $.ajax example is not correct. This line: data:"url="+url,num="+num, does not make sense and I'm surprised it's not throwing an error. Try changing it to: data:{url:url,num:num}, Mike On 6/16/07, joomlafreak <[EMAIL PROTECTED]> wrote: I wonder if this is normal I am sending a