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

  • SEARCH
  • Home
  • 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 8111675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:12:31+00:00 2026-06-06T02:12:31+00:00

I have a Phonegap App, using jQuery and jQuery Mobile. In some page I’ve

  • 0

I have a Phonegap App, using jQuery and jQuery Mobile.

In some page I’ve bound a function to a tap event, but the function is triggered when the page loads.
After debuging a little (using arguments.callee.caller.caller.toString()) I discovered that, for some crazy reason, a click event is being triggered in that button just when the page is loaded.

When I changed the footer’s class, the problem had gone (also my styling), then I changed the class references in my CSS file to match the new footer class, the problem came back. This is very strange, maybe it have something with my CSS.

There’s no any other reference to "footer_body" in my project.

If I set the function calls directly on the HTML(something like <span onClick="javascript:obj.leftMethod()">), I have the same behavior.

For sure it’s a Phonegap/Android issue, as this doesn’t happen in a PC browser (besides I have to comment a lot of code which only work in mobile).

Here’s the code:

HTML:

<div class="footer_body">
   <span class="left"><span>Text 1</span></span>
   <span class="right"><span>Text 2</span></span>
</div>

JS/jQuery:

function PageClass() {
...
    // called when the page is loaded
    this.init = function() {
        $(".footer_body", "#page_2").find(".left").unbind("tap").bind("tap", function() {
            that.leftMethod();
        });

        $(".footer_body", "#page_2").find(".right").unbind("tap").bind("tap", function() {
            that.rightMethod();
        });
        // that is a reference to "this" of the class
    }
}
  • 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-06-06T02:12:32+00:00Added an answer on June 6, 2026 at 2:12 am

    Question near to be solved. The real problem is that all touch events are being carried to the next pages. I didn’t noticed that before, seemed it were something like a auto click, but was the previous screen touch event that triggered the current page touch event.

    Sure it’s a Android or Phonegap bug – More info about it here, in case of someone have the same perception I had from this problem.

    I still in need of a concrete solution, but I’m tired of investigating this, so I temporarily solved this setting a short delay to activate the listener functions.

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

Sidebar

Related Questions

I have some strange scrolling problems with my PhoneGap (using jQuery Mobile) app: I'm
I'm making an PhoneGap app using Jquery Mobile, but I have a little problem
I have a PhoneGap App using jQuery Mobile. At a certain page, I cannot
I have PhoneGap app in Android using jQuery. Sometimes I need to upload some
I am using jQuery Mobile for my PhoneGap app in Xcode. I have created
I have a simple Android App using simple js, jquery mobile and phonegap that
I am developing a Android app using Jquery Mobile/Phonegap. I have the following code
I have created android phonegap app using html,css,javascript and jquery.When i hit the back
I've built a Jquery Mobile Android App using Phonegap which contains a form with
I'm making an app on PhoneGap using Jquery Mobile. The app runs fine on

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.