Thursday 15 April 2010

javascript - how to take input from excel file and show output on speedometer -


I am creating a page via html5 and javascript. But I am not trapped in the middle. In my page we need to take an excel file and read its entire data and put it into the speedometer. I do not know how to do it.

  1. To take input from, or to read the axle file with javascript

  2. How to show output in the speedometer, from the input that we have taken from that axle file ..

      & lt; Input type = "button" value = "draw" onclick = "drawWithInputValue ();" & Gt; & Lt; Input type = "file" id = "file" onchange = "checkfile (this);" / & Gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt; & Lt; Script type = "text / javascript" language = "javascript" & gt; Function checkfile (sender) {var validExts = new array (".xlsx", ".xls", ".csv"); Var filex = sender property; FileExt = fileExt.substring (fileExt.lastIndexOf ('.')); If (validExts.indexOf (fileExt) & lt; 0) {Warning ("Invalid file selected, valid files are" + validXts.string () + "type."); return false; } And true back; }   

    This is for the recognition of Excel Page. After that I am totally confused I am here..Please save me from this. Someone please give me the argument for speedometer which can take input from Excel and can show the output by rotating your stick

    This can help you read your Excel file,

    var xVal = 1; Var yVal = 2 Function readadata (X, Y) {x = xVal; Y = yVal; 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; // warning (data); DrawWithexcelValue (data); XVal = xVal + 1; } Grip (east) {warning (east); }}

No comments:

Post a Comment