473,404 Members | 2,137 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,404 software developers and data experts.

Accessing value of hidden table cell

I've created an ASP table which is dynamically populated and it has a hidden
column at the end. The cell is marked as invisible but when I try and obtain
the cell value in client side script (JavaScript) then the cell does not
exist in the row's Cells collection. If I flag the cell as visible on
creation then the cell value can be accessed by the client side script.

Can someone help me out?
Jun 27 '08 #1
2 2216
any control set to invisible is not rendered, so can not be accessed by
client script. you can set the style, but hidden fields seem like a better
idea.

-- bruce (sqlwork.com)
"chris" wrote:
I've created an ASP table which is dynamically populated and it has a hidden
column at the end. The cell is marked as invisible but when I try and obtain
the cell value in client side script (JavaScript) then the cell does not
exist in the row's Cells collection. If I flag the cell as visible on
creation then the cell value can be accessed by the client side script.

Can someone help me out?
Jun 27 '08 #2
For the reason Bruce's said, leave the column with Visible = true and hide
it with css rule display:none. You can do it by assignid the column's
CssClass="Invisible" where Invisible is defined somewhere in css as
..Invisible{displey:none}

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:BD**********************************@microsof t.com...
any control set to invisible is not rendered, so can not be accessed by
client script. you can set the style, but hidden fields seem like a better
idea.

-- bruce (sqlwork.com)
"chris" wrote:
>I've created an ASP table which is dynamically populated and it has a
hidden
column at the end. The cell is marked as invisible but when I try and
obtain
the cell value in client side script (JavaScript) then the cell does not
exist in the row's Cells collection. If I flag the cell as visible on
creation then the cell value can be accessed by the client side script.

Can someone help me out?

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: cwizard | last post by:
I'm calling on a function from within this form, and there are values set but every time it gets called I get slammed with a run time error... document.frmKitAmount.txtTotalKitValue is null or not...
1
by: Kev | last post by:
Hello, I'm pretty sure this is the right place to post and I hope someone can help me. I'm more of a cgi scripter, so I'm not 100% familiar with stylesheets but I know enough to get by. The...
5
by: Matt Williamson | last post by:
I have a table that gets generated every 5 minutes containing the drive space on my servers. The table is sortable via an external javascript file by clicking the column headers (using sortable.js...
2
by: TadPole | last post by:
Hi all, My main problems are::::::::: 1. Set a value within a block container that can be used and changed by subsequent templates/block-containers/tables etc.. 2. get/determine/find the...
2
by: Kumar | last post by:
Hi Folks, I have a question regarding my windows c# application. This application just reads MS Excel file and puts the data in to sql server database. In that excel file ,it has one named cell...
1
by: Luis Esteban Valencia | last post by:
Hello. I have a datagird with textboxes on a column item template, I also have 2 other columns that are hidden and I want to retrieve his value. But I havent found how to do it. Thanks very much...
2
by: ortega23 | last post by:
Hi, I am trying to obtain the column number of the parent of a cell, if the cell is a linked cell (i.e. its value depends on another cells value). I try to read "Precedents"(parent cells) of...
2
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has...
1
by: gbengston | last post by:
Please look at my example, I have a script that pulls the value of one cell and inserts it into an input box in another cell. My problem is that the source cell is itself an input box so when I pull...
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
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
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
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.