Hello friends,
I neet to change a text into a table cell when the user click on an image.
The value of this text arrive from a variable.
Thank you for your suport.
Nico
Yunus Emre ALPÖZEN [MVP] - 23 Jan 2006 20:03 GMT
define an id for your table cell. and handle relevant image click event.
change the text inside cell by using innerHTML/innerText and accessing cell
via its id....

Signature
HTH
Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET
Microsoft .NET & Security MVP
> Hello friends,
>
[quoted text clipped - 4 lines]
>
> Nico
Vidar Petursson - 05 Feb 2006 19:02 GMT
Hi,
<img onclick="doIt('blah')".....
<td id="myTD"....
function doIt(sTxt){
if(document.getElementById){
var e = document.getElementById("myTD");
if(e!=null) e.innerText = sTxt;
}
}
More info:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/referen
ce/dhtml_reference_entry.asp
Best Regards
Vidar Petursson
> Hello friends,
>
[quoted text clipped - 4 lines]
> t
> Nico