Coder Social home page Coder Social logo

Not working in IE (v11) about ng-table-export HOT 4 OPEN

esvit avatar esvit commented on July 28, 2024
Not working in IE (v11)

from ng-table-export.

Comments (4)

anatolysukhanov avatar anatolysukhanov commented on July 28, 2024

I don't think it's possible

https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs says:

"Internet Explorer 8 and above only supports data URIs for images in CSS, link, and img".

from ng-table-export.

NicBright avatar NicBright commented on July 28, 2024

It is possible using window.navigator.msSaveOrOpenBlob, at least from IE9 upwards (I don't know about IE8). See http://stackoverflow.com/questions/13464878/creating-csv-file-offline-client-side-in-internet-explorer.

I've written myself a custom monkey patch for this, which I would be happy to properly share with the community, i.e. of course if @esvit can give me the guarantee to have a look at it. I have to ask for this, because the support for ng-table in general seems to be declining since a couple of months, with the only usable statement from @esvit being that he's working on ng-table v0.4 ...

@esvit: If you can give me feedback I'd be happy to provide a pull request for this to fix CSV export functionality for IE9+ support.

I have also monkey patches available to have the user chose the encoding of the generated CSV-file (currently you will get UTF8). This is important, because Excel 2007 (which is still used out there in a lot of companies) interprets CSV-files as latin1.

@esvit: If you can give me feedback I'd be happy to also provide a pull request for letting the user decide whether the generated file should be latin1 or UTF8 encoded.

from ng-table-export.

NicBright avatar NicBright commented on July 28, 2024

Here is the fix:
#13

Have fun! :-)

from ng-table-export.

floydpink avatar floydpink commented on July 28, 2024

Since this repo was not being updated, we forked it and would welcome suggestions like these that could improve the library.

Check out https://github.com/kollavarsham/ng-table-to-csv

from ng-table-export.

Related Issues (14)

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.