Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 10th, 2008, 07:45 PM
Conrad Lender
Guest
 
Posts: n/a
Default Re: Moving dynamically created table rows up and down in an HTMLtable

On 2008-10-10 19:56, T.G. wrote:
Quote:
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"?
Quote:
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
  #2  
Old October 14th, 2008, 01:05 PM
T.G.
Guest
 
Posts: n/a
Default 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@yahoo.comwrote in message
news:wrSdnQ_6Y9OiPHLVnZ2dnUVZ_v_inZ2d@supernews.co m...
Quote:
On 2008-10-10 19:56, T.G. wrote:
Quote:
>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"?
>
Quote:
>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

  #3  
Old October 14th, 2008, 02:05 PM
T.G.
Guest
 
Posts: n/a
Default Re: Moving dynamically created table rows up and down in an HTML table

Here is the problem in better detail, it seems I'd best be looking for a
workaround:

http://javascript-today.blogspot.com...e-problem.html

Thanks anyway!
Tim

"T.G." <yellowdwarfband@gmail.comwrote in message
news:gd21dk$r6k$1@registered.motzarella.org...
Quote:
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@yahoo.comwrote in message
news:wrSdnQ_6Y9OiPHLVnZ2dnUVZ_v_inZ2d@supernews.co m...
Quote:
>On 2008-10-10 19:56, T.G. wrote:
Quote:
>>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"?
>>
Quote:
>>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
>
>

 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles