Identify 'single click' and 'double click' events..
Posted: Thu Apr 19, 2012 1:29 am
Hi,
I am using below mentioned php code (only stated the code that related to the event) to delete a record in a table and it works well.
Now I want to modify this to, when the user click on the delete image the page redirect to a page that contains more information with delete button. Or if the user double click the delete image it will ask for delete confirmation. Both events should be occur on the same 'delete image'.Is this possible in php?
"<td align='center' id='delete'><a href='Delete.php?ID=" . $list['ID'] . "' onClick=\"return confirm('Delete " . $list['Name'] . " ?')\">
<img src='delete.gif' id='delete' title='delete' alt='delete' border='0'></a></td>
I am using below mentioned php code (only stated the code that related to the event) to delete a record in a table and it works well.
Now I want to modify this to, when the user click on the delete image the page redirect to a page that contains more information with delete button. Or if the user double click the delete image it will ask for delete confirmation. Both events should be occur on the same 'delete image'.Is this possible in php?
"<td align='center' id='delete'><a href='Delete.php?ID=" . $list['ID'] . "' onClick=\"return confirm('Delete " . $list['Name'] . " ?')\">
<img src='delete.gif' id='delete' title='delete' alt='delete' border='0'></a></td>