Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / February 2006

Tip: Looking for answers? Try searching our database.

dynamic text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nicolas - 23 Jan 2006 12:00 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.