Is this forum meant only for simple questions???
At least, I don't think so.
Pls help me out as I'm facing following problem since long.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Atal Bihari Upadhyay
Sent: Thursday, July 11, 2002 9:53 AM

To: [EMAIL PROTECTED]
Subject: How to read a node value in netscape 6.0.


Hi All,

I am trying to read value of a cell (<TD>) of a table. In IE, innertText is
giving the cell value but innerText is not supported in Netscape browser.

ex.
document.getElementById("tablecontrol").getElementsyTagName("TR")[2].getElem
entsByTagName("TD")[2].innerText

where tablecontrol is id of table

will give value o the second cell of the of the second row of table.

In Netscape, I tried with nodeValue i.e.

ex.
alert(document.getElementById("tablecontrol").getElementsyTagName("TR")[2].g
etElementsByTagName("TD")[2].nodeValue)

It gives the value in some other format and blank is apprering in alert
message.

Can anybody tell me how can I get the value of the text inside cell.

Thanks in advance for all your help.

Regards,
Atal.



--------------------------------------------------------------
Computer Sciences Corporation India Pvt. Ltd., Indore, India

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



--------------------------------------------------------------
Computer Sciences Corporation India Pvt. Ltd., Indore, India

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to