How does datatables create the csv export?
How does datatables create the csv export?
MustangProgrammer
Posts: 16Questions: 5Answers: 0
The reason I ask, I'm trying to automate some pages. When I click the CSV button in a browser, it opens a "save as" window so a location and filename cane be chosen. However in applications like PhantomJS, SlimmerJS and CasperJS, there is no interactive mode, nor do I want one. Is there a way to get the csv and save it to a location without the download dialog showing? If so, can someone give me an example?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It depends upon the browser - for example in Chrome for me it just downloads automatically to my Downloads folder. The CSV export makes use of this library. I don't believe there is a way to tell the browser if you want to download to a path rather than use a save as box if that is how the browser is configured. You certainly can't tell it what path to download to - that would be a major security issue.
Allan