473,395 Members | 1,936 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 5657
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.