2

what is the alterantive to jQuery.ajaxSettings.traditional option in xmlhttprequest? or how to serialize the query params for a xmlhttprequest?

2 Answers 2

0

If you want to serialize object, you can use $.param(). On the contrary, if you want to disable it globally, you can set $.ajaxSettings.traditional = true;

1
  • i am not using $.ajax() for the requests, i am using XMLHttpRequest().I want the alternative for $.ajaxSettings.traditional option in XMLHttpRequest Jun 26, 2013 at 4:55
-1

If you don't want to change it globally, do the following:

$.param({...}, true)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.