tableExport.jquery.plugin icon indicating copy to clipboard operation
tableExport.jquery.plugin copied to clipboard

Output sometimes appears in the same browser window.

Open schutze opened this issue 10 years ago • 4 comments

Hello, nice work on this plugin. I noticed that some of the output types, like PDF for instance, appear within the same browser window. This can be confusing to some users who do not realize they need to hit the back button to get back to the page. They may close the window instead.

Could you modify the plugin so the output always appears in a new browser window?

schutze avatar Jun 11 '14 19:06 schutze

Thanks for your feedback and i'll update to you once it is done.

kayalshri avatar Jun 12 '14 09:06 kayalshri

I didnt get it, it has been done? I got the same issue, but not sometimes always.

i correct, only with PDF is exporting in the same window.

By the way, excellent plug in.

salfredogonzalez avatar Oct 09 '15 17:10 salfredogonzalez

HAVE YOU UPDATEd?

SCORPIO12 avatar Aug 05 '16 10:08 SCORPIO12

Hi,

I repair this modifing tableExport.js line 333:

doc.output('datauri');

with:

var buffer = doc.output(); window.open('data:application/'+defaults.type+';filename=exportData;base64,' + Base64.encode(buffer));

PSF1 avatar Apr 20 '17 16:04 PSF1