Giter Site home page Giter Site logo

Comments (3)

johnculviner avatar johnculviner commented on July 17, 2024

Your right. It appears IE really doesn't like JSON going into the IFRAME. In my case it thinks a file download has occurred. Unfortunately I don't think there is any way to fix/change this without fundamentally changing how the plugin works (and probably breaking it for a bunch of other use cases). For now I would just avoid sending JSON back. Remember file downloads are very Web 1.0 (at least for now...) unfortunately.

Thoughts?

from jquery.filedownload.

johnculviner avatar johnculviner commented on July 17, 2024

Actually I just thought of something else to try. Send back JSON but set the below header.

Content-Type: text/html; charset=utf-8

This may fool IE in to rendering the JSON in the IFRAME as HTML and you can just parse it from there. Good luck and sorry for the delay!

from jquery.filedownload.

fcduarte avatar fcduarte commented on July 17, 2024

Hmm good catch ... I will try it and then I sent you the results ..

Thanks!!

John Culviner [email protected] wrote:

Actually I just thought of something else to try. Send back JSON but set the below header.

Content-Type: text/html; charset=utf-8

This may fool IE in to rendering the JSON in the IFRAME as HTML and you can just parse it from there. Good luck and sorry for the delay!


Reply to this email directly or view it on GitHub:
#14 (comment)

from jquery.filedownload.

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.