Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#8064 closed bug (invalid)

including jquery.validate 1.7 switches ajax call to jsonp

Reported by: jdart@… 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/

Change History (7)

comment:1 Changed 13 years ago by jitter

Component: unfiledajax
Owner: set to jaubourg
Priority: undecidedlow
Status: newassigned

comment:2 Changed 13 years ago by jaubourg

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.

comment:3 Changed 13 years ago by jitter

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.

comment:4 Changed 13 years ago by nonreal@…

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

comment:5 Changed 13 years ago by jdart@…

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

comment:7 Changed 12 years ago by calamao80@…

No more problems with the new version of JQuery Validation 1.8

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

Note: See TracTickets for help on using tickets.