HighDots Forums  

Re: Weirdness when adding a row to a table

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Weirdness when adding a row to a table in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mscir
 
Posts: n/a

Default Re: Weirdness when adding a row to a table - 04-20-2004 , 01:37 PM






jon wrote:
Quote:
I'm trying to add a row to a table and I think I'm not doing something
right. The sample code below contains a table with 4 single cell rows,
a button and a javascript function that the button runs.

In Netscape 7.0 and Firefox 0.8 the code below does add a row to the
table when the button is clicked but the alert() shows 4 instead of 5
like I'd expect.
snip

The example code didn't add a new row in my IE6. If you add the alert to
see the # of rows at the end of the add/delete row functions on this
page it works. The page claims thir code Browser Support is:

- works in Internet Explorer 6, Netscape 6, and Mozilla 1.6.
- will not work in Netscape 4 and below or IE 5 and below.

http://www.mredkj.com/tutorials/tableaddrow.html

Mike



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.