Comments (9)
Did that fix the problem, I have the same problem. FF wants to download the json response, not parse it in the callback.
from form.
duplicate of ticket 36 http://github.com/malsup/form/issues#issue/36
from form.
If you embed your response json in a textarea element everything will work fine:
<textarea>{ "my": "response" }</textarea>
from form.
Hm, that looks like a worst workaround than placing an incorrect mime-type on the response to me. Which is the real problem here?, isn't it a FF problem?
from form.
The problem requires a workaround so pick your poison.
from form.
Seems like it. I'm already poisoned with my proposed solution, but I wonder how to report this to mozilla as a FF bug. It's a FF bug, right?
from form.
No, it's not a bug. The browser can be configured to take various actions based on the mimetype of the response. But there is no way for javascript to effect that configuration. Note that when I add FormData support to the plugin this issue should resolve as genuine ajax will be used for the upload. Hope to have that added within the next couple weeks.
Worth reading: http://kb.mozillazine.org/File_types_and_download_actions
from form.
Thank you!
from form.
I recomend to take a look in: #448
Also, text/x-json
works better than text/plain
, for semathic reasons.
from form.
Related Issues (20)
- Webpack + ajaxForm HOT 2
- Latest Chrome update breaks plugin response handling HOT 17
- 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?
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.