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 6655223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:29:26+00:00 2026-05-26T01:29:26+00:00

Using jQuery Mobile (jquery.mobile-1.0b3.min.js). If i apply a click event to a form, the

  • 0

Using jQuery Mobile (jquery.mobile-1.0b3.min.js). If i apply a click event to a form, the back button seems to get the click event binding as well. It does this no matter how specifically targeted to an element the selector is. For example:

Using this to set the back button:
Copy code

<div id="pagename-page" data-role="page" data-add-back-btn="true" data-back-btn-theme="b">

And this in a script file:
Copy code

$('#awards-details-page').live('pagecreate', function(event){

    $('#awards-details-page input[name=submit]').bind('vclick', function() {
        console.log('I'm going to be hijacked by the back button.');
    });
});

Clicking on the back button will produce the message in the console when tested in a browser.

Every time you visit the page with the script, it will add another duplicate binding. Attempts to unbind the click event on the pagehide event worked with the targeted element, but back button’s bindings persisted.

Can anyone shed some light on this?

Thank you in advance.

  • 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-26T01:29:26+00:00Added an answer on May 26, 2026 at 1:29 am

    dont use vclick you will ge ghost, they have improved CLICK so just use that
    also live is not bind… bind is to an element that exist, live is for all elements that have that shared property, before after and during. you past pages exist so you have a set of binded items now not just one for the page you are on. i would scrap the whole back button element and have your own clickable item, for this you can do your own back code and add attributes like data-backto = “#page1”, you can then control better what happens when a back button is clicked, especially as android phones have there own back button too.

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

Sidebar

Related Questions

I am using jquery mobile alpha 4. I simply bind a click event on
I am using jquery mobile datepicker, i need to capture the calendar click event,
Using jQuery, how do you bind a click event to a table cell (below,
I'm using jquery mobile to building a site but when I click on a
I have created app using jQuery Mobile and need to get a Dialog box
I'm using jQuery Mobile on an MVC 3 website. Working well except that I
I am using JQuery mobile in asp.net web form website. I have the following
I am using jquery-mobile and it seems it doesn't detect the landscape setting. What
I'm using jquery-mobile and jquery-ui and it seems the dialogs or conflicting with each
I'm using jquery-mobile with Ruby On Rails. I want to create a button link

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.