Buttons - Export with flash buttons works only first time in IE

Buttons - Export with flash buttons works only first time in IE

carranthuohill3carranthuohill3 Posts: 4Questions: 1Answers: 1

Hi

Sorry for my English.
I use Buttons plug-in with DataTatables. I have a problem with exporting data on old browsers like IE7 and IE8 when flash buttons are grouped under collection type button. They works only for the first time. They don't work if you hide them and show again. There aren't any messages on console. This problem exists in all versions of Internet Explorer if you use flash buttons.

Examples:

Steps to reproduce:

  1. Choose Save button and export to CSV.
  2. Click elsewhere to hide flash buttons.
  3. Change sorting.
  4. Choose Save button and export to PDF.

You have to use Draft page to show examples under Internet Explorer.

I found that the error occurs when js engine calls this.movie.setAction(newText); in buttons action and then stops executing. But clickHandler in ZeroClipboard action script is executed.

I found similar question here https://datatables.net/forums/discussion/22181/tabletools-export-works-only-first-time

I read that there is problem with flash buttons if DataTables is hidden on initialization. This can be resolved using buttons.resize(). I tried call this api in console when the buttons where showed but it didn't help.

The workaround for this is not using collection type button.

Thank you for any advices how to resolve this issue.

This discussion has been closed.