Skip to content Skip to sidebar Skip to footer

Tabletoexcel Jquery Throws Strange Error In Ie

I am using a jQuery function to export my HTML table to Excel. This is a function I have seen used in plenty of other places, and it works fine for me in Chrome: var tableToExcel =

Solution 1:

You my friend are in big trouble ( kidding )!

The main issue with older versions of IE is the support for base64 encoding which can be taken care of using this Javascript library.

But the main issue is the Data URL Scheme which is available on WebKit based browsers and you can have it on IE based on RCA 2397. It has a limited functionality and mostly works for images and css. Here is a useful link. Also make sure to read the Wikipedia page for Data URL Scheme

**Now to talk about workarounds! **

The main solution is writing a server side script that creates the Excel file and you just use an Ajax call to send it back to the user! you can even store that file on your server's Filesystem and just send the address of that file.

Though if you are mostly focusing on the client side and you really need to work on IE, you should use a download library, preferably the ones that have swf (Flash support) here is one that I have not used yet, though I am hoping to get the result that you are looking for. There are claims that downloadify does it well and let me know how it goes!

Post a Comment for "Tabletoexcel Jquery Throws Strange Error In Ie"