-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ajaxSubmit not compatible with jQuery>=1.12.1 #495
Comments
Hi This code is not working with new Jquery 2.2
Is there anyway to fix it, thanks |
Working Fine on 2.2.3 no problem at all Code
|
As I said, it is the success callback what is not working. You have to change this line $(options.target)[fn](data).each(oldSuccess, arguments); with something like $(options.target)[fn](data).each(function(){
oldSuccess.call(this, data, status, xhr);
}); |
Works no Problem with Success too jQuery v2.2.3
|
The problem only happens if (!options.dataType && options.target). You are not specifying a target, that's why you don't meet the problem. |
I confirm the issue, I have exactly the same issue after upgrading jquery |
Same problem here with ajaxForm (success is called with undefined form object) when upgrading from jq 1.7.2 to 1.12.3 |
Are you still experiencing this issue with version 4.0.1+? |
On Tue, Feb 21, 2017 at 01:48:45PM -0800, Kevin Morris wrote:
Are you still experiencing this issue with version 4.0.1+?
Yes, same problem.
… --
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#495 (comment)
|
Here's a quick example: https://jsfiddle.net/etdssL0h/10/ |
I don't know if this plugin is still supported (it seems it's not), but in case anyone is interested, there is a problem with this code in ajaxSubmit:
because, in jQuery 1.12.1, they have changed the function each() from
to
That means that the success callback function is called without parameters.
The text was updated successfully, but these errors were encountered: