Re: Moving dynamically created table rows up and down in an HTML table
- From: "T.G." <yellowdwarfband@xxxxxxxxx>
- Date: Tue, 14 Oct 2008 07:56:28 -0400
Sorry, I neglected to inform the group that its and IE only app and this
does work in IE ... but I will have a boo at the link!
"Conrad Lender" <crlender@xxxxxxxxx> wrote in message
news:wrSdnQ_6Y9OiPHLVnZ2dnUVZ_v_inZ2d@xxxxxxxxxxxxxxxx
On 2008-10-10 19:56, T.G. wrote:
After loading the snippet in your browser, you will see a simple HTML
table with 2 hyperlinks per line that call js code to move the rows
up and down. There is a hyperlink at the bottom, 'ADD', that
dynamically adds 3 rows to the bottom of the table. These new rows
also have Up and Down links that move the rows up and down.
The problem: the links in the 5 static rows work perfectly. The links
in the new rows only work the first time they are clicked on, then
cease to fire!
This doesn't work at all, at least not in Firefox. When any of the "up"
or "down" links is clicked, the following error occurs:
clickedRow.removeNode is not a function
in line #34: clickedRow.removeNode(true);
Did you mean "removeChild"?
I cannot figure out why. I wonder if one of you could point me in the
right direction,
The very first thing you should do validate your HTML, and fix all of
the errors:
http://validator.w3.org/
Then use a script debugging tool in whatever browser you're using. I
suggest you use Firefox, and install the "Firebug" add-on. Fixing your
script shouldn't be too hard then.
- Conrad
.
- Follow-Ups:
- References:
- Prev by Date: Re: unique reference id
- Next by Date: Re: unique reference id
- Previous by thread: Re: Moving dynamically created table rows up and down in an HTML table
- Next by thread: Re: Moving dynamically created table rows up and down in an HTML table
- Index(es):
Relevant Pages
|