Do you know what is “traditional style of param serialization” for jQuery.ajax() as mentioned in http://api.jquery.com/jQuery.ajax/ ?
Can you give some introduction?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at the documentation of
jQuery.param():Given
setting
traditionaltotruegeneratesWhile e.g. Python can handle these parameters, i.e. it generates a list for
foo, PHP will only consider the lastfooparameter.But now by default, the result of the serialization is (actually it is URI encoded)
which can be better handled, as mentioned, by PHP and RoR.
Or maybe even more interesting is this. Given:
traditional produces:
which is clearly not useful in comparison with the “new” way: