views:

746

answers:

3

Is there a way to access an Excel worksheet using javascript?

A: 

No.

Why is the data in an Excel worksheet? I have no idea your application, but for whatever you are trying to do I would probably suggest putting the data into a database table somewhere. Then your web site can pull from the database with ASP or PHP or your language of choice, and whatever you are doing with Excel right now could be done with Access.

Sparr
A: 

I wanted to do something similar (display Excel data in a web page without requiring a web server). After reviewing the options, I decided to export the data to XML and process it with Javascript. See this page on w3schools (look for the "Parsing XML with JavaScript" section. This turned out to be much easier than mucking around with ActiveX components to access Excel spreadsheets directly.

Mark A. Nicolosi
+1  A: 

you can convert excel to csv or json by using php and the show it in datatable using YUI Datatable or ExtJS data grid.

Gaurav Verma