By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,567 Members | 1,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,567 IT Pros & Developers. It's quick & easy.

Can I add a new row into a page that is being displayed?

P: n/a
I need to dynamically add a row into a table on a page that is already
loaded into the browser, using javascript.

How?

TIA,

Larry Woods
Oct 3 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
lwoods wrote:
I need to dynamically add a row into a table on a page that is already
loaded into the browser, using javascript.

How?


Do a search on this group for 'add table row' and sort by date. There
are a number of examples in the last few months, here are a couple:

<URL:http://groups.google.co.uk/group/comp.lang.javascript/browse_frm/thread/a3a589078cd7a9f6/fe83c6b841645713?q=add+table+row&rnum=10#fe83c6b84 1645713>

<URL:http://groups.google.co.uk/group/comp.lang.javascript/browse_frm/thread/85493f4088248075/5d02c6a0be601c82?q=add+table+row&rnum=14#5d02c6a0b e601c82>
--
Rob
Oct 4 '05 #2

P: n/a

Look into DOM document.createElement() to make the TR element, and
..insertBefore() or .appendChild methods to bind it to the parent element.
Danny
Oct 4 '05 #3

P: n/a
Thanks, Rob....

Just what I was looking for.

Larry

"RobG" <rg***@iinet.net.au> wrote in message
news:Tf*****************@news.optus.net.au...
lwoods wrote:
I need to dynamically add a row into a table on a page that is already
loaded into the browser, using javascript.

How?


Do a search on this group for 'add table row' and sort by date. There are
a number of examples in the last few months, here are a couple:

<URL:http://groups.google.co.uk/group/comp.lang.javascript/browse_frm/thread/a3a589078cd7a9f6/fe83c6b841645713?q=add+table+row&rnum=10#fe83c6b84 1645713>

<URL:http://groups.google.co.uk/group/comp.lang.javascript/browse_frm/thread/85493f4088248075/5d02c6a0be601c82?q=add+table+row&rnum=14#5d02c6a0b e601c82>
--
Rob

Oct 4 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.