Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4249642
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:25:25+00:00 2026-05-21T04:25:25+00:00

Do you know what is traditional style of param serialization for jQuery.ajax() as mentioned

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:25:26+00:00Added an answer on May 21, 2026 at 4:25 am

    Have a look at the documentation of jQuery.param():

    As of jQuery 1.4, the $.param() method serializes deep objects recursively to accommodate modern scripting languages and frameworks such as PHP and Ruby on Rails. You can disable this functionality globally by setting jQuery.ajaxSettings.traditional = true;.

    Given

    var p = {foo: [1,2,3], bar: 42};
    

    setting traditional to true generates

    foo=1&foo=2&foo=3&bar=42
    

    While e.g. Python can handle these parameters, i.e. it generates a list for foo, PHP will only consider the last foo parameter.

    But now by default, the result of the serialization is (actually it is URI encoded)

    foo[]=1&foo[]=2&foo[]=3&bar=42
    

    which can be better handled, as mentioned, by PHP and RoR.


    Or maybe even more interesting is this. Given:

    var p = {foo: {1: [3,4], 2:2,3:3}, bar: 42};
    

    traditional produces:

    foo=[object Object]&bar=42
    

    which is clearly not useful in comparison with the “new” way:

    foo[1][]=3&foo[1][]=4&foo[2]=2&foo[3]=3&bar=42
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is jQuery submit form code. what i like to know is how can
I know you can not set a key value dynamically, but what about the
Anyone know how I can make a login button in Ruby on Rails for
I know there are lots of tools on the net that can make our
I want to use the traditional C-style for loop in Python. I want to
Does anyone know what CSS can be applied to these elements to make the
I don't know if it's a common problem, but I can't find the solution
I know how to work with jQuery dialog, like below JQuery snippet $(#PMinfo).dialog({ autoOpen:
In case of things that are hard to test using traditional xUnit-style methods, such
I am developing a toolbar for a customer, that wants a traditional IE style

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.