Code Monkey home page Code Monkey logo

Comments (9)

jstates avatar jstates commented on August 16, 2024

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.

lamtha avatar lamtha commented on August 16, 2024

duplicate of ticket 36 http://github.com/malsup/form/issues#issue/36

from form.

malsup avatar malsup commented on August 16, 2024

If you embed your response json in a textarea element everything will work fine:

<textarea>{ "my": "response" }</textarea>

from form.

diegok avatar diegok commented on August 16, 2024

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.

malsup avatar malsup commented on August 16, 2024

The problem requires a workaround so pick your poison.

from form.

diegok avatar diegok commented on August 16, 2024

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.

malsup avatar malsup commented on August 16, 2024

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.

diegok avatar diegok commented on August 16, 2024

Thank you!

from form.

odahcam avatar odahcam commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.