Page 1 of 1

Identify 'single click' and 'double click' events..

Posted: Thu Apr 19, 2012 1:29 am
by nirosha
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>

Re: Identify 'single click' and 'double click' events..

Posted: Thu Apr 19, 2012 3:14 am
by social_experiment
nirosha wrote:Is this possible in php?
Not the identification of the double and single click, that will probably be achieved by using javascript