Skip to main content

Bug Tracker

Side navigation

#8064 closed bug (invalid)

Opened January 26, 2011 04:16PM UTC

Closed January 28, 2011 01:01PM UTC

Last modified March 13, 2012 06:01PM UTC

including jquery.validate 1.7 switches ajax call to jsonp

Reported by: jdart@dyknow.com Owned by: jaubourg
Priority: low Milestone: 1.next
Component: ajax Version: 1.5rc1
Keywords: Cc:
Blocked by: Blocking:
Description

If you use $.ajax and include jquery.validate.js, it will switch your call to using jsonp.

http://jsfiddle.net/bAzYU/

Attachments (0)
Change History (7)

Changed January 27, 2011 12:11AM UTC by jitter comment:1

component: unfiledajax
owner: → jaubourg
priority: undecidedlow
status: newassigned

Changed January 27, 2011 12:25AM UTC by jaubourg comment:2

jQuery validate redefines ajax and, in the process, extends options with ajaxSettings to allow its new custom options to be stored there. I contacted Jörn with a clean workaround using a prefilter.

Changed January 28, 2011 01:01PM UTC by jitter comment:3

resolution: → invalid
status: assignedclosed

As this isn't jQuery core bug but a bug in a plugin I'm closing the ticket. The author has been notified of the issue and a way to fix his plugin has been proposed. So please check on the plugins homepage for an updated version to appear to use with jQuery 1.5+.

In general reports for bugs in plugins should be filed on the plugin site or directly to the respective authors of those plugins. You can also try posting to the correct subforum in the jQuery Forum or using the #jquery irc channel on freenode for support.

Changed February 01, 2011 12:26PM UTC by nonreal@gmail.com comment:4

Can you atleast provide a solution here until the author will provide a new version?

Changed February 01, 2011 01:13PM UTC by jdart@dyknow.com comment:5

jaubourg shared this in irc: http://pastebin.com/5teiWN8K it's the feature detection needed to make jquery.validate work with the new ajax. The code in jquery.validate.js is at line 1090

Changed February 02, 2011 05:49PM UTC by jaubourg comment:6

Changed April 27, 2011 01:29PM UTC by calamao80@gmail.com comment:7

No more problems with the new version of JQuery Validation 1.8

http://bassistance.de/jquery-plugins/jquery-plugin-validation/