File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Delete a dynamically added row from table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Delete a dynamically added row from table" Watch "Delete a dynamically added row from table" New topic
Author

Delete a dynamically added row from table

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
I have 3 different functions to remove a row(dynaically added) from a table.

I have a delete button which is suppose to delete the row.I select a row and say delete and onClick I call a function

These are the three functions viz...












Should there be any changes?

The first 2 are from internet,3rd one is mine!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
deleteRow(this);

Eric
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
Eric,I have tried that but somehow it's not deleting !!! what else could be in reckoning for change?

whew,it's not entering the onclick function!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Wowzers, I did not see this line this morning

document.all('vocab').

NEVER NEVER NEVER use document.all

If it is not getting into the onclick, are you in your loop? Also look at your deleteRows function and how you are calling it. You will see they do not mesh.

Eric
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
Which function is looking stable? The loop I was referring to was for function3.yeah, the calling and rest is fine...no idea where the change is...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Delete a dynamically added row from table