Results 1 to 3 of 3

Thread: Work on popup events

  1. #1
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Work on popup events

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    HTML Code:
    <tr id="somerow"><td>whatever</td></tr>
    Then to remove it:

    Code:
    var a_row=document.getElementById('somerow');
    a_row.parentNode.removeChild(a_row);
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •