473,587 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.remo veNode is not a function

in line #34: clickedRow.remo veNode(true);
Did you mean "removeChil d"?
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
Oct 10 '08 #1
2 3871
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" <cr******@yahoo .comwrote in message
news:wr******** *************** *******@superne ws.com...
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.remo veNode is not a function

in line #34: clickedRow.remo veNode(true);
Did you mean "removeChil d"?
>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

Oct 14 '08 #2
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." <ye************ *@gmail.comwrot e in message
news:gd******** **@registered.m otzarella.org.. .
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" <cr******@yahoo .comwrote in message
news:wr******** *************** *******@superne ws.com...
>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.remo veNode is not a function

in line #34: clickedRow.remo veNode(true);
Did you mean "removeChil d"?
>>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


Oct 14 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
14105
by: Rob Meade | last post by:
Hi all, I'm desperately trying to get this to work and I just cant do it - new to ASP.net - probably the reason! I'm using visual studio for this - I have this in the html page : <asp:Table id="Table1" runat="server"></asp:Table> there is other code too but I believe this to be the relevant part...
1
1626
by: martin | last post by:
Hi, I have the following code in my page load event that creates a table on the web page. The trouble is that after a postback such as a button click on the page the table is not retained but ignored. If Not IsPostBack() Then Response.Write("This is NOT a postback<br>") Dim tblMain As New Table
3
2881
by: Bijoy Naick | last post by:
I have something strange going on.. My .aspx page contains a file upload control, a "Import Data" button, a "newTransactions" <asp:table>, a"SaveTrans" button and an confMsg label. First the user selects a file, then clicks Import Data. The page now reads the PostedFile and displays each line as a new row in the newTransactions table. All...
0
1060
by: Luis Esteban Valencia | last post by:
-- How do I add an activeX control to a dynamically created table? LUIS ESTEBAN VALENCIA MICROSOFT DCE 3. MIEMBRO ACTIVO DE ALIANZADEV http://spaces.msn.com/members/extremed/
4
507
by: Newbee | last post by:
I'm using a table (dynamically generated at runtime) for formatting wherein I have text in the first column, and textboxes in the second column. For example, (1,1) might have the string "Last Name" and (1,2) has a textbox where the user can type the last name; (2,1) "First Name", and (2,2) a textbox, and so forth. The code to it is: dim...
5
3435
Tann3r
by: Tann3r | last post by:
Apache.v2.2.4, MySQL.v5.0.27, PHP5.2.1 I have a table of projects which has been dynamically created from an SQL query. I have several dropdown boxes which have been populated from other tables within the database and i would like to filter the information shown in the main table dependant upon the items selected in the dropdown list(s). I...
5
3202
by: Liquidtouch | last post by:
I'm not much of a HTML or Javascript programmer but have a little experience just hacking away at it. I am creating a HTML application and would like to be able to add or remove rows of a table. The row that gets added will need to contain 2 columns, 1 which contains an IFRAME, and the other will contain a Javascript Menu which will be used...
1
1284
by: kavithavr | last post by:
hello I have created a table dynamically with four fields on that two fields are option buttons in VB.net. Using panel control i have displayed the table. My question is, there is no events for panel, if i want to do some action when the option button is clicked means what i have to write and where i have to write the code for it?
2
2454
by: semomaniz | last post by:
I have created two tables dynamically and have added textboxes inside the table. now i am trying to retrieve the data from the the textboxes and i am getting a null reference error. I am not sure why i am getting this error. Please advice. Code to set the tables protected void LoadCityStateControl(int origin, int destination) { ...
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.