PDA

View Full Version : Work on popup events



suman
10-13-2006, 07:32 AM
HI,
In my table i have some data. when i rightclick mouse on data i get my own popup(Add Task, Delete Task).when i click on AddTask the row should be deleted.

Urgent

jscheuer1
10-13-2006, 09:50 AM
You really need to give us a bit more information than that. Do you want to remove the row from the DOM or just set its display to none? Perhaps just making its visibility hidden would suffice.

Using the DOM you could give the row an id:


<tr id="somerow"><td>whatever</td></tr>

Then to remove it:


var a_row=document.getElementById('somerow');
a_row.parentNode.removeChild(a_row);

suman
10-25-2006, 04:34 AM
thanks for ur response.

When i click on DeleteTask option the complete row must be deleted,and even the data in the DataBase must also be deleted.Ya, i Need to remove te row from DOM.