title: Read excel data with javascript?
body: <p>I want to read excel data using javascript. I'm using active xobject method to get it but it won't work for me. The excel file and html files are on my desktop, so the path of the excel sheet is: "jitender.xls". 
  Any idea which part I missed?</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;excel&lt;/title&gt;
  &lt;script type="text/javascript"&gt;
     function readFromExcel(x,y)
     {
        var excel = new ActiveXObject("Excel.Application");
        var excel_file = excel.Workbooks.Open("jitender.xlsx");
        var excel_sheet = excel_file.Worksheets("Sheet1");
        var data = excel_sheet.Cells(x,y).Value;
        //var value = readFromExcel(1,1).value; 
        document.write("Value from Excel file is " + data);
        return data;
     }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="readFromExcel(1,1)"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>