Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

dynamic content in HTML document - javascript

I'm using javascript to create a link that when clicked will make a bunch of stuff change on the page without the page reloading. right now I'm using this:

document.getElementById("divname").innerHTML="THIS THING"

which changes everything within <div id="divname"> </div> to say THIS THING. This is working fine so far. The problem is I now need to change the content of certain div tags to contain more than 1 line, and this script doesn't work with this. If I'm changing/adding full tables and things, I can't put it all on one line. How can I do this? PLEASE help. You're awesome. Thanks.

- paul
[668 byte] By [paulbarrett] at [2007-11-11 7:56:12]
# 1 Re: dynamic content in HTML document - javascript
Java is not Javascript. Please post this in the Web Forum ( http://forums.dev-archive.com/forumdisplay.php?f=112). Thanks!
destin at 2007-11-11 22:36:55 >
# 2 Re: dynamic content in HTML document - javascript
thanks. woops. will do.
paulbarrett at 2007-11-11 22:38:00 >