Export table data to XLS
https://www.travismclarke.com/tableexport/
convert to many formats – js, pdf, xls etc
Export table data to XLS
https://www.travismclarke.com/tableexport/
convert to many formats – js, pdf, xls etc
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <div> Name : <input type="text" /> <h1>Hello {{name}}</h1> </div> |
Some quick notes
Visual Editor
Snippets, tools, themes etc.
Others
This is so simple and very useful for reporting purpose. You can easily export your html table to .csv format with this jquery scripts.
Step 1: Html File
<form action="getCSV.php" method="post"> <input id="csv_text" name="csv_text" type="hidden" /> <input onclick="getCSVData()" type="submit" value="Get CSV File" /> <script type="text/javascript"><!--mce:0--></script> </form> |
Step 2: PHP File ( getCSV.php )
<!--?php header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"my-data.csv\""); $data=stripcslashes($_REQUEST['csv_text']); echo $data; ?--> |
Thanks to the code writer
source: http://www.kunalbabre.com/projects/table2CSV.php
If you are lazy to copy and paste the jquery file to your development folder for example when testing something simple, you can always use jquery hosted by google. To include it is very simple, you just include this script on the top and you’re done.
1 2 3 4 | <script src="http://www.google.com/jsapi"></script> <script> google.load("jquery", "1.3"); </script> |
You are ready to use the jquery. Yahooo.. ups.. Goooooglee!!