Comments (6)
I'm also struggling with this error. The error only seems to occur when there is a file input in the form.
from form.
I've run into this as well. Again, it only occurs during a file upload (due to the iframe I'm guessing).
from form.
I am having the exact same problem. I tried debugging it and I believe the problem is on line 264 of jquery.form.js:
$io.appendTo('body');
$io.data('form-plugin-onload', cb);
It seems that if the load event triggers sufficiently quickly, the 'form-plugin-onload' data on the element will not yet be set, so an attempt is made to call something that is not a function. As a result the callback is not called at all.
I simply swapped the two lines and that fixed the issue completely for my purposes. I also doubt that that could cause any other bugs, however, I didn't have time to test it more thoroughly, and it's possible I'm misunderstanding something about the jquery forms plugin or jquery, so someone should at least run the test suite through it before committing. In the meantime, to the two of you who were having the same problem, you can just swap those two lines in the jquery form code:
$io.data('form-plugin-onload', cb);
$io.appendTo('body');
and hopefully you'll be lucky too. Best wishes!
Patch follows:
262a263,265
> // save the callback so the iframe can get it
> // we need to do this *first* (see github issue #22)
> $io.data('form-plugin-onload', cb);
265d267
< $io.data('form-plugin-onload', cb);`
from form.
I can confirm the bug.
@galdosd: Unfortunately, your workaround does not fix the bug at all. :(
from form.
I found that if the server-side script returns some text in the response then this error doesn't occur. I didn't look closely at the source to see why this is true, but I thought I'd share.
from form.
Can someone post a simple test page that shows the problem? Thanks.
from form.
Related Issues (20)
- Forms plugin is breaking after Chrome 83 update HOT 4
- Potential Vulnerability HOT 2
- AjaxForm posting file in Chrome83 is not anymore working HOT 1
- WebSocket option?
- Trouble I have created a filters for my custom post type universities using ajax
- <button> elements with no "type" don't send their value on submit
- Feature Request: onReady event
- multiple file HOT 2
- button value not submitted with delegated ajaxForm() HOT 1
- linked javascript url no longer works HOT 1
- "data" option not sending through arrays
- Data Process Display in Progress HOT 1
- TagName in Element Undefined
- Unsafe HTML constructed from library input HOT 1
- "Unsafe jQuery plugin" CodeQl alerts HOT 1
- Messages from ME to ME
- The Travis CI badge on README.md (i.e. GitHub repository frontpage) no longer work
- New release jQuery 4 support?
- Old versions in NPM?
- How to make it work on vite
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from form.