Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7500017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:01:35+00:00 2026-05-29T20:01:35+00:00

I am developing an HTML5 application for a client for their internal use on

  • 0

I am developing an HTML5 application for a client for their internal use on the iPad platform. Everything has been going very well implementing various JQUERY solutions for a variety of tasks, but this one just doesn’t seem to make sense.

They have a list of items on a page, contained in an un-ordered list, which they would like their users to be able to drag and drop to shuffle the order, or click a delete button to remove one of the items.

I have it sorting just fine and it deletes just fine, at first. But then, when testing on the iPad, after I have clicked on the delete button, it runs through a confirm and performs the operation I have defined. But then, the next time I click on the screen in triggers the click event again, even if I am far away from the div which is defined to trigger this event.

Here is an HTML snippet of one of the

  • tags which sorts and deletes:

    <li id="12345">
    <div class="clearfix">
        <div class="product-image">
            <img src="../../img/presentation.png" width="200" height="140" />
        </div>
        <div class="product-info">
            <div class="details">
                <h3><a class="name" href="#">Comparison</a></h3>
                <ul>
                    <li><strong>Competitor: </strong>[Brand]</li>
                    <li><strong>Us: </strong>[Brand]</li>
                </ul>                                       
            </div>
            <div class="brand">
                <div class="remove" style="width: 30px; height: 30px;">(&times;)</div>
                <div class="edit-bar"><img src="../../img/presentations-edit-bars.png" /></div>
                <p class="logo">[Distributor]</p>
            </div>
        </div>          
    </div>
    
  • Here are the various jquery includes and the internal javascript to accomplish these tasks:

    <script src="../../js/libs/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/libs/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../../js/libs/jquery.ui.touch-punch.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(function () {
            $(".remove").click(function () {
                var e = $(this);
    
                this.style.backgroundColor = "#FFAAAA";
    
                var p = this.parentNode;
                var count = 1;
                while (p.tagName != 'LI') {
                    p = p.parentNode;
                    count++;
                }
    
                var cont = confirm("Are you sure you would like to delete this item?");
    
                if (cont) {
                    var deletedItems = document.getElementById('deletedItems');
                    if (deletedItems.value != "") {
                        deletedItems.value += ",";
                    }
                    deletedItems.value += p.id;
                    p.style.display = 'none';
                }
    
                this.style.backgroundColor = "transparent";
            });
            $("#sortable").sortable({
                stop: function (event, ui) {
                    var newOrder = "";
                    for (i = 0; i < $("#sortable li").size(); i++) {
                        newOrder += $("#sortable li").get(i).id;
                        if (i < $("#sortable li").size() - 1) {
                            newOrder += ",";
                        }
                    }
                    document.getElementById('currentOrder').value = newOrder;
                }
            });
            $("#sortable").disableSelection();
        });
    </script>
    
    • 1 1 Answer
    • 0 Views
    • 0 Followers
    • 0
    Share
    • Facebook
    • Report

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    1 Answer

    • Voted
    • Oldest
    • Recent
    • Random
    1. Editorial Team
      Editorial Team
      2026-05-29T20:01:36+00:00Added an answer on May 29, 2026 at 8:01 pm

      This seems to be somewhat of a common issue faced by many people. The probable reason is that on the iPad, you have two events getting called tap and click.

      The solution would be to unbind your events before handling the actual event like

      $('.remove').unbind('click touchstart').click(function() { ... }
      

      Hope this works.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
        • Report

    Sidebar

    Related Questions

    I'm currently developing a reasonably complex HTML5 application. Up to now, I've been testing
    I'm currently developing a reasonably complex HTML5 application. Up to now, I've been testing
    So I have been developing a web application, and I have implemented the HTML5
    We are developing an HTML5 + CSS3 application for iPad and iPhone. The app
    I've been developing android application using html5 , jquery and phonegap default provided by
    I am developing a web application that is going to be both IE9/HTML5 compatible
    I am currently developing a little sketching application based on HTML5 Canvas element. There
    I am developing an iPhone application and I use HTML to display formatted text.
    We are considering using PhoneGap for an iPad application that we are developing. We
    I'm developing a WebWorks application for the Blackberry Playbook. This page in their documentation

    Explore

    • Home
    • Add group
    • Groups page
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help
    • SEARCH

    Footer

    © 2021 The Archive Base. All Rights Reserved
    With Love by The Archive Base

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.