Is it possible to print, export csv in datatable without flash?

Is it possible to print, export csv in datatable without flash?

jerryjerry Posts: 5Questions: 0Answers: 0
edited March 2010 in General
By using TableTools we can export CSV and print tables. I was wondering if there is any other way that I could use this feature without using flash.

Thanks
Jerry

Replies

  • cockroachbillcockroachbill Posts: 1Questions: 0Answers: 0
    I was also wondering if this was possible. Any information would be greatly appreciated. Thanks
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The print option doesn't need flash at all, so that is safe. However, if you want to export a file, then there are three options:

    1. Use data:// - which isn't supported in IE so that's out
    2. Use Flash - not a great solution but the only viable one which works whole on the client-side
    3. Use a server-side script to create the file needed

    So if you want to drop Flash, you'll need to use some kind of server-side script to create the file and send it back. TableTools 2 makes sending the XHR tot he server much easier (indeed it's not really possible in TableTools 1), and while TableTools 2 is still in development (and has no documentation) I can send over a copy of it if you like ( http://datatables.net/contact - ping me here with your e-mail address). The server-side scripts will still need to be written though.

    Allan
This discussion has been closed.