Re: Moving dynamically created table rows up and down in an HTML table



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


.



Relevant Pages

  • Re: Moving dynamically created table rows up and down in an HTML table
    ... dynamically adds 3 rows to the bottom of the table. ... in the new rows only work the first time they are clicked on, ... at least not in Firefox. ... Then use a script debugging tool in whatever browser you're using. ...
    (comp.lang.javascript)
  • Re: Moving dynamically created table rows up and down in an HTML table
    ... table with 2 hyperlinks per line that call js code to move the rows ... dynamically adds 3 rows to the bottom of the table. ... at least not in Firefox. ... Then use a script debugging tool in whatever browser you're using. ...
    (comp.lang.javascript)
  • Port Scanning
    ... Please forgive my ignorance about this (first time I've encountered it). ... Is this (see bottom of post) an example of port scanning? ...
    (comp.security.misc)
  • Re: OT - Coincidence in the ether question
    ... "first time" (actually, I suppose most ecerything that happens to us ... scripting functions in MSIE. ... Other scripting languages, e.g. Javascript, do not have the same degree ... I use Seamonkey and Firefox. ...
    (rec.outdoors.rv-travel)
  • Re: question about pointer define
    ... If you want to post a followup via groups.google.com, ... "Reply" at the bottom of the article headers. ... For each new poster, it's the first time; ...
    (comp.lang.c)