Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By sgkalluri
#790143
Hello there,

Is there a way to detect and act on a double click event using Javascript while running PM?

Thanks in advance...

SGK
User avatar
By amosbatto
#790158
For most input fields:
Code: Select all
$("#myfield").getControl().dblclick( function() {
  alert("double click");
});
or for a button:
Code: Select all
$("#myfield").find("button").dblclick( function() {
  alert("double click");
});
By sgkalluri
#790163
Thanks a lot Amos. It worked.

I also noticed that if I use both the event handlers - single click and double click - in JS code, then the preference goes to the single click over the double click. Is that expected behavior?

Thanks again,
SGK

Hello! If you did not find the mcrypt extension […]

Hello! You have a mistake in the url, the correct […]

objects variable in grid

Hello! It is very rare since I could not replicate[…]

Hello! It is likely that the design you are doin[…]