Ghost clicks in jQuery Mobile

http://philosopherdeveloper.com/posts/ghost-clicks-in-jquery-mobile.html

About these ads

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: