Questions tagged [vclick]

The jQuery virtualized click event handler.

Part of jQuery Mobile API, vclick exists to abstract mouse and touch events in mobile applications. According to the documentation:

We provide a set of "virtual" mouse events that attempt to abstract away mouse and touch events. This allows the developer to register listeners for the basic mouse events, such as mousedown, mousemove, mouseup, and click, and the plugin will take care of registering the correct listeners behind the scenes to invoke the listener at the fastest possible time for that device.

Some helpful links:

5 questions
1
vote
1 answer

How to simulate vclick using jQuery?

This is how I simulate a click in a web browser: $(document).ready(function() { $("button").click(); }); But how can I simulate a vclick instead? The reason is I want to automate a tap on mobile devices. Any ideas?
Ralph David Abernathy
  • 5,230
  • 11
  • 51
  • 78
1
vote
1 answer

Does jQuery mobile need jQuery UI for virtual events?

In the jQM documentation about virtual events, there is a phrase that is not clear to me: This plugin extends jQuery's built-in method. If jQuery UI is not loaded, calling the .vclick() method may not fail directly, as the method still exists.…
Matthieu
  • 563
  • 1
  • 7
  • 25
0
votes
1 answer

jQuery Click touch for iPhone?

I have this function below but it does not work on iphone6: $(document).on("click touch", "a[href^='#']", function (e) { var id = $(this).attr("href"); if ($(id).length > 0) { e.preventDefault(); // trigger scroll …
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
0 answers

jQuery mobile vclick / tap fired on scroll

I'm using vclick from jQuery mobile to eliminate the click delay on mobile devices. It mostly works fine, however if I have a scrollable element and I touch-scroll it, vclick is fired at the coordinates where I touched the element to initiate the…
Aleks G
  • 56,435
  • 29
  • 168
  • 265
-1
votes
2 answers

onclick function not working on mobile device : jquery

I have a table where I can append data to it, once the forms have data in, I click submit scores, this appends the data to the table. After appending the data, I click the update leader board button, this has a sort function attached to it which…
user1
  • 31
  • 1
  • 5