#8064 closed bug (invalid)
including jquery.validate 1.7 switches ajax call to jsonp
Reported by: | 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.
Change History (7)
comment:1 Changed 13 years ago by
Component: | unfiled → ajax |
---|---|
Owner: | set to jaubourg |
Priority: | undecided → low |
Status: | new → assigned |
comment:2 Changed 13 years ago by
comment:3 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
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
Can you atleast provide a solution here until the author will provide a new version?
comment:5 Changed 13 years ago by
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 13 years ago by
I forked jQuery validation and patched it: https://github.com/jaubourg/jquery-validation
You can grab the script and test it in your environment:
comment:7 Changed 12 years ago by
No more problems with the new version of JQuery Validation 1.8
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
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.