Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamically change text in table cell

Status
Not open for further replies.

wekkew

Programmer
Sep 28, 1998
123
GB
Hi

I'm using dreamweaver and I'm trying to replicate the effect of the code shown below - that is to dynamically update the contents of a table cell when a user clicks, mouseover etc.

The problem with the code below is that it doesn't work under Netscape. Presumably DreamWeaver has it's own way of doing things now - my HTML is somewhat ancient...

Thanks


<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
function whatever() {
document.all(&quot;ONE&quot;).innerText = 'new text';
document.all(&quot;TWO&quot;).innerText = 'some more new text';
}
</SCRIPT>

<TABLE BORDER=1>
<TR><TD ID=&quot;ONE&quot;>Original text</TD></TR>
<TR><TD ID=&quot;TWO&quot;>Original text</TD></TR>
</TABLE>


 
ye, Netscape doesn't support innerText... But it does support it now from version 6.0 and later. So what is the question? I personally don't know any behaviour/extension DW have for such things. You may try use layers it might help however I personally wouldn't use 'em. Good Luck! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top