Ahhhhhh....here is the other thing. Using the CGI module:
print $query->header(-type=>"application/vnd.ms-excel",-attachment=>"path/file.xls",-Content_length=>" -s path/file.xls");
Try creating a small script that responds to the clicked link with this code:
print "Content-Type: text/csv\n";
print "Content-Disposition: attachment; filename=something.csv\n\n";
You can also change the text/csv to text/plain. If that doesn't work for you, let me know, I have something else...
For similar projects, I had to create an array with the div name to loop through it. I had to do that because there were other positioning divs that I didn't want touched by the loop. It's an idea that will build on the excellent example provided above.
Here is a library that will create bar graphs, line graphs and very simple pie charts. It uses only JavaScript1.2 so should be good for most of todays browsers:
http://www.geocities.com/james_melanson/JSOOP/jsgraph.html
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.