3 thoughts on “Ghost clicks in jQuery Mobile

  1. David Tao says:

    Hi Dan! I’m on a business call right now with some of our developers working on mobile apps using Jquery mobile and HTML5! If they have “ghost clicks” I will point them to your blog!

  2. Amy says:

    Hi, is there any solutions to prevent this ghost click?

  3. Thanks, your article really helped me, I had spent ages messing around with event bubbling. Strangely this:

    $(‘.exit’).tap (function() {
    if(confirm(‘Are you sure you want to exit?’)) {
    window.location = “index.html”;
    return false;
    }
    else {
    return false;
    }
    });

    works just fine using JQM & phoneGap BUT ONLY ON ANDROID

    to make the same script work on an IOS browser you have to use click(); like you say in your article.

    $(‘.exit’).click (function() {
    if(confirm(‘Are you sure you want to exit?’)) {
    window.location = “index.html”;
    return false;
    }
    else {
    return false;
    }
    });

    Different types of new click events are a bit of a new thing.
    have a look here:
    http://ben-major.co.uk/2012/05/jquery-mobile-events-finally-launched/
    for new JQM events

Leave a comment