Bug Tracker

Ticket #8064 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

Description

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

 http://jsfiddle.net/bAzYU/

Change History

comment:1 Changed 4 years ago by jitter

  • Owner set to jaubourg
  • Priority changed from undecided to low
  • Status changed from new to assigned
  • Component changed from unfiled to ajax

comment:2 Changed 4 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 4 years ago by jitter

  • Status changed from assigned to closed
  • Resolution set to invalid

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 4 years ago by nonreal@…

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

comment:5 Changed 4 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:6 Changed 4 years ago by jaubourg

comment:7 Changed 4 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.