javascript to programmatically launch export to CSV

javascript to programmatically launch export to CSV

loud33loud33 Posts: 2Questions: 0Answers: 0
edited May 2011 in TableTools
I have a table whose existing appearance or behavior can't be changed. I'd like to enable the exporting functions that TableTools provides without touching the original table. In order to do that, I'm cloning the table's contents into a new div that a user can't see, attaching DataTables, and then trying to launch one of the export actions. My first attempt was simply to use jQuery to click the export buttons directly. It doesn't seem like the flash click handler catches this. Is there a way to programmatically launch the export events that are already tied to the table I've created?

Replies

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    There isn't a built-in way of doing this - if I recall correctly Adobe took some steps in Flash 10 to stop "drive by downloads" where just being on the page would cause a download to occur - but I can't remember the ins and outs of it. What you might be able to do is set up a function in the AS3 / JS bridge that will active the export (the clickHandler function in the AS3 code).

    Allan
  • loud33loud33 Posts: 2Questions: 0Answers: 0
    Thanks for the response.

    Luis
This discussion has been closed.