Comments (2)
I have had this issue trying to use this code too, it seems to be due to this code:
// Move the file fields into the hidden form, but first remember their
// original locations in the document by replacing them with disabled
// clones. This should also avoid introducing unwanted changes to the
// page layout during submission.
markers = files.after(function(idx) {
return $(this).clone().prop("disabled", true);
}).next();
files.appendTo(form);
As a result, your code is moved into IFRAME and won't run the second time.
The easiest solution for the author of this product would seem to be putting the clones in the IFRAME instead, or perhaps using something like clone(true) to also clone events.
The easiest workaround for the users of this product I found was to use live type events, i.e. the selector parameter of the 'on' function.
from jquery-iframe-transport.
This is actually due to the commit in this pull request: #24 (comment)
I have asked the author to revert the commit.
The issue is that he is not putting back the original file inputs after replacing them with markers.
If you look at the code for the linked pull request you can see the offending code.
from jquery-iframe-transport.
Related Issues (20)
- Submitting request with Opera prompts file download. HOT 2
- Fix for object, array and string data support HOT 2
- Script5: Access denied when trying to submit form HOT 22
- [patch] If the textarea exists but does not have data-status and data-statusText attributes, they end up being NULL. HOT 2
- [patch] If the textarea exists but does not have data-status and data-statusText attributes, they end up being NULL.
- Can't get this to work. HOT 2
- When submitting file on Chrome, response is 200 OK but status is "(canceled)".
- Aborting an upload
- [enhancement] Add missing bower.json. HOT 2
- LICENSE? HOT 1
- Please add version tags HOT 3
- File not chosen after starting upload
- Content Security Policy warning
- IE asks to download JSON file -- Demo HOT 3
- Documentation for Browser Support
- [object Object] and Firefox 35.0 HOT 1
- Not available via npm? HOT 1
- Firefox (49.0.1) issue with ifame upload plugin HOT 12
- How to get an error if the server fails to respond?
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 jquery-iframe-transport.