Over a million developers have joined DZone.

jQuery 1.5 broke my validation

DZone's Guide to

jQuery 1.5 broke my validation

· Web Dev Zone
Free Resource

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

jQuery 1.5 includes a complete overhaul of the AJAX module. However, it broke the validation jQuery plugin remote calls that ValidateThis uses.

Whilst debugging it in Firebug, I noticed that a new "callback" parameter is passed to the server, which you didn't have with jQuery 1.4.4. After a bit of googling I found a comment on a mailing list that you need to include this callback in your server response.

Previously, the server side script just had to return true or false, so this worked fine:

<cfset result = "true">

With jQuery 1.5, you need to do this:

<cfset result = "true">

Hope that saves someone some head scratching!

Update: This is fixed in the jQuery plugin repo on github: 


Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda


Published at DZone with permission of John Whish, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}