OZONE Asylum
Forums
DHTML/Javascript
Append table-row elements to existing table
This page's ID:
28730
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Indeed no magic there. Just do some [b]document.createElement( [i]nodeName[/i] )[/b] ( where [i]nodeName[/i] is td, tr, ... ) and append the resulting nodes where you want/need to. And avoid using innerHTML directly for it can lead to script injection and the like. Prefer using [b]document.createTextNode( 'plainText' )[/b] If you need to catch up on DOM and JavaScript, check [url=http://www.slimeland.com/content/articles/jsenhance/]Peter-Paul Koch's Quirksmode[/url] site or [url=http://www.slimeland.com/content/articles/jsenhance/]Slime's Enhancing web pages with JavaScript article[/url] [url=http://www.p01.org/][sigrotate][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love_small.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_charly.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_reason.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img][/sigrotate][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 12-12-2006 22:34)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »