About Dovetail

Read more about Dovetail Software and our HR applications that will transform your Employee and HR Experience
Overview
Request Demo

Our Story

With over 20 years of
CRM & HR experience...
Read on >

Our People

The Dovetail culture code
is our key to success
Discover >

Partners

Working with the best
partners around the globe
Learn more >

Careers

Fancy a career with Dovetail?
If you are a rockstar...
Join us >
Dovetail Flair

Why Us?

The easiest to use HR Case Management & Employee Portal solution for your business
Benefits of Dovetail HR Service Delivery

Our Difference

The Dovetail difference
is what sets us apart
Read on >

Our Customers

Learn more about our customers
and why they chose Dovetail
Discover >

Implementation & Support

Hear how we delight our
customers right from the start
Learn more >

Our Innovation

The Dovetail innovation team
is at the forefront of technology
Explore >
dovetail security & privacy
Dovetail Flair

Our Solutions

We create HR Case Management Solutions that are tailored to your needs

HR Transformation

You're embarking on
your HR Transformation
journey, see how Dovetail..
Read on >

HR Shared Services

Find out more about
our Workday Select
Partner Certification
Learn more >

Employee Relations

Learn how Dovetail helps
you track your employee
relations cases
Find out more >

Workday Customers

Find out more about
our Workday Select
Partner Certification
Learn more >

HRIS

Manage and track
technical questions
from your HR team
Discover >

Clarify Customers

Breathe new life into your
Amdocs Clarify system with
our technology and services
Find out more >

Learn

Discover new insights and thought leadership content to help you continuously improve your HR Service Delivery

Blog

Stay updated on HR
Shared Services with insights
from the Dovetail community
Join the conversation >

Events & Live Shows

Meet the Dovetail team at
leading industry events
and live shows
Meet us >
Dovetail HR Dog
Dovetail Flair

Dovetail for Clarify

1 min read

jQuery 1.4 breaks ASP.Net MVC actions with array parameters

Feb 24, 2010 9:46:58 PM

We had a Ajax-ified page break on us today and eventually figured out that the cause was related to an upgrade of jQuery and in particular a change in how jQuery 1.4 does serialization of array parameters for Ajax operations. From the jQuery 1.4 Release Notes.

jQuery 1.4 adds support for nested param serialization in jQuery.param, using the approach popularized by PHP, and supported by Ruby on Rails. For instance, {foo: ["bar", "baz"]} will be serialized as “foo[]=bar&foo[]=baz”.

In jQuery 1.3, {foo: ["bar", "baz"]} was serialized as “foo=bar&foo=baz”. However, there was no way to encode a single-element Array using this approach. If you need the old behavior, you can turn it back on by setting the traditional Ajax setting (globally via jQuery.ajaxSettings.traditional or on a case-by-case basis via the traditional flag).

Our page was using getJSON to get data back from an ASP.Net MVC action that looks like this

public JsonResult GetListElements(string listTitle, string[] levelValues)

We found that the second array parameter would always be null. Adding the recommended Ajax setting for the page corrected the issue.

// Enables for all serialization
jQuery.ajaxSettings.traditional = true;

For more details about this issue check out this post: jQuery 1.4 breaks ASP.NET MVC parameter posting.

Kevin Miller
Written by Kevin Miller

Post a Comment

Featured