title: how to take input from user defined excel file using javascript
body: <p>hello guys..
                I am making a page in which i have to take excel file from user and read that file ..but all i know is to read a particular file by giving its address..for this i am using javascript and html ..here is my code for reading excel file</p>
  
  <pre><code>        &lt;input type="button" id="btnSubmit" onclick="readdata(1, 2)" value="Submit" /&gt;
  
                  &lt;script&gt;
              function readdata(x,y) {
  
  
         try {
          var excel = new ActiveXObject("Excel.Application");
          excel.Visible = false;
          var excel_file = excel.Workbooks.Open("D:\\Test.xls");//                            
                 alert(excel_file.worksheets.count);
          var excel_sheet = excel_file.Worksheets("Sheet1");
          var data = excel_sheet.Cells(x, y).Value;
          //alert(data);
          drawWithexcelValue(data);
      }
      catch (ex) {
          alert(ex);
      }
      //    return data;
  
  
       }
       &lt;/script&gt;
  </code></pre>
  
  <p>This is my code for reading excel file by defining  path of a particular excel file...now i have to do is   take the excel file from user..guys please help..</p>
  
  <p>And any kind of help through code wil be really appreciated.. </p>
  
  <p>someone please help me</p>