Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 28th, 2004, 07:14 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing hidden column data

Hi all,

  I have an ASP.NET databound datagrid and have added in an extra
column that holds a simple HTML control ie,
  <SPAN id=uniqueid>my span text</SPAN>

  I have a JavaScript function that can read the innerText of the
  span (using document.getElementById(uniqueid).

  My really frustrating problem is that:
    I want to make the <SPAN>s hidden. But if I do this,
    I then cannot access its innerText. I've tried using other
    pure HTML controls and I always get the same problem.

    Can I have a hidden HTML control and still access
    its innerText ? Or should I use another type of HTML control
    to hold 'embedded data' that I dont want the viewer to see but
    can reference by its unique id?

Thanks in advance. Muchly frustrated beginner


  I







Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView Hidden DateTime Column date conversion babuman ASP.NET 2.0 Professional 0 February 1st, 2007 06:22 PM
Skipping hidden rows in a data list JT3686 Excel VBA 0 March 25th, 2005 05:47 PM
Compare two Items of data(in column A and column B ever Excel VBA 6 February 13th, 2004 02:19 PM
Accessing the contents of a hyperlink column in a rosalynb VS.NET 2002/2003 2 October 1st, 2003 06:33 PM
Accessing the contents of a hyperlink column in a rosalynb ADO.NET 0 September 29th, 2003 01:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.