473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to get cell-content of EXCEL file thru JavaScript ?

Hello everybody!
I'm not a master of clientside JavaScript but I have much working knowledge of it.

Here is my problem :

I have a web-page with a "text-area" box.
I have an excel file with 10 columns and 15 rows.
each cell has a unicode-text data stored in it.

I want to show two drop-down menus along side with the above said text-area.
in first drop-down menu, column nos. of said EXCEL file will be as options where as in 2nd one, row nos. will be the options.
when a user selects an option from first DD-menu (say: E) and another option (say: 2) from 2nd DD menu and then press on submit button ...
the text area should display the data which contains in the cell E2

Is it possible?
How can we link the data of an outside file (as in this case: an EXCEL file) to an html-page ?
Is there any way of using client side javascript in this matter?
or I have to use ASP ?

many thanks (in advance) for anyone's valuable suggestions ... :)

regards:
BaaZauq
Mar 5 '07 #1
1 5656
acoder
16,027 Expert Mod 8TB
Welcome to TheScripts.

If you're only using Internet Explorer and this is for, say, an Intranet, where you have a controlled environment, you can use an ActiveX object to access an Excel file:
Expand|Select|Wrap|Line Numbers
  1. var excel = new ActiveXObject("Excel.Application");
Then use VB-like code, e.g.
Expand|Select|Wrap|Line Numbers
  1. excel.ActiveSheet.Cells(1,1).Value
for the value in column A, row 1.
Mar 5 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: James | last post by:
wxpython 2.5.3 hi, anyone know how to make a multiline cell editor for wxgrid? thank you :) best regards, James
2
by: ted | last post by:
Hi, Was wondering if it's possible to find the left position of a table cell if the cell is created dynamically. I have a table with a single cell. When a button is clicked, I'd like to add...
7
by: Andrew Poulos | last post by:
I'm using the following code to create a small table with one column and two rows. An image goes into the first cell. //create table var t = document.createElement("TABLE"); t.style.position =...
2
by: Alfonso Morra | last post by:
Hi, I have the following code as part of a class: class Cell { public: Cell( int ) ; Cell( const Cell& ) ; Cell& operator= Cell( const Cell& ) ; // <- compiler croaks here virtual ~Cell()...
1
by: Thanks | last post by:
I have a routine that is called on Page_Init. It retrieves folder records from a database which I display as Link Buttons in a table cell. I set the table cell's bgcolor to a default color (say...
3
by: Tim::.. | last post by:
Hi, I keep getting the following error in my code: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index I presume it is because...
4
by: Hiwj | last post by:
I am having a problem with a cell in a table in ASP.NET which used to work OK in classic ASP. I have one cell in a row where the width should be 22 pixels and the other cell should take up the...
17
by: toffee | last post by:
Hi all, I have a table with 12 cols and 10 rows. When a user clicks on a table cell; the page is refreshed and displays some data below the table dependant on whichever cell was selected. I...
6
TMS
by: TMS | last post by:
This spreadsheet is almost done, but there is some functionality that is driving me nuts. For instance: a cell, for instance 'a0' is to have 'a0' as a string, but if something is entered like...
1
by: DaveyP | last post by:
I have a user control (called data_dictionary) which I need to add into the header text of a datagrid. I'm doing this by adding the control in the RowCreated event as follows: dds_descriptions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.