Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
i am trying to export a html table data to excel using javascript.
i have googled it.
some codes uses Activex object.
some are compatible with firefox.
i need some codes which works in all browsers.
and please ckeck it once.


Thanks in advance
Posted
Comments
hansoctantan 21-May-12 11:30am    
How about try using a server side language, its more safer that way.
Also you can't export files if the browsers javascript is disable.
gourisankar mohanta 22-May-12 0:02am    
hi hansoctantan,
i have done this export previously and was working fine in firefox,chrome,IE.
now it is only working in firefox.
i am sending the code url please check
http://jsfiddle.net/insin/cmewv/

1 solution

As hansoctantan wrote, if Excel is not installed on client computer, you can't export data into Excel file using javascript, unless on server side.
Instead of Excel, export data into CSV[^] file.
 
Share this answer
 
Comments
Prasad_Kulkarni 23-May-12 0:32am    
My 5!
Maciej Los 23-May-12 2:03am    
Thank you, Prasad ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900