jQuery Breaks ASP.NET MVC Action Parameters
After upgrading to jQuery 1.4 my jQuery posts that passed in parameters to my MVC actions started failing. I noticed that “” was being appended to the parameters.
Instead of this:
It looked like this:
Turns out it had to do with how 1.4 serialized parameters. You can read more about it at the posts below. To fix it, I added this globally on the page for now:
// Enables for all serialization
.jQuery.ajaxSettings.traditional = true;
- « Change Web Root Path for XAMPP on Windows
- » Firefox Private Browsing Causes ‘Script Panel was inactive during page load’ Message in Firebug
Comments ( 1 Comment )
Add a Comment
You must be logged in to post a comment.