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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nirosha
Forum Newbie
Posts: 5
Joined: Mon Feb 20, 2012 10:56 pm

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

Post 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>
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

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

Post 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
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply