ceylon
05-11-2009, 11:52 PM
I may be over complicating this, but basically I need to emulate the delete row functionality in phpmyadmin on a table im writing dynamically. When clicked on the row I'd like to have it prompt with a are you sure you want to delete y/n and then submit the page, the code would automatically rewrite the table with the newly deleted table row. Where I'm stuck at is starting with how to mesh the js with the php to interact with the table.
Below is a partial piece of the table im generating. Basically when TR with ID example is clicked id need to initiate the deletion (each of the 4 td's are pulled over from the table):
<td>Department</td>
<td>Phone</td>
<td>Extension</td>
<td>Email Address or Notes</td>
</tr>
<tr id="example">
<td>Bananas</td>
<td>541-997-4988</td>
<td>4988</td>
<td>Bananas</td>
</tr>
Below is a partial piece of the table im generating. Basically when TR with ID example is clicked id need to initiate the deletion (each of the 4 td's are pulled over from the table):
<td>Department</td>
<td>Phone</td>
<td>Extension</td>
<td>Email Address or Notes</td>
</tr>
<tr id="example">
<td>Bananas</td>
<td>541-997-4988</td>
<td>4988</td>
<td>Bananas</td>
</tr>