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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:27:18+00:00 2026-06-02T21:27:18+00:00

I use jQuery Mobile in my application. I have and index.html page, and I

  • 0

I use jQuery Mobile in my application. I have and index.html page, and I try to add another page to my application. So on the index.html page I have a link to the Camera.html page:

<a href="Camera.html">Take a photo</a>   // A. version

When I click on the link, the camera’s page swipes in (it redirects to the Camera.html page with swipe animation), but none of the event handlers are called on the Camera page (load, DOMContentLoaded, etc.). I think that jQuery Mobile uses ajax for redirecting to other pages and that’s why the event handlers are not called.

If I change it to the following, the events are called, but the page redirection won’t be animated:

<a href="Camera.html" data-ajax="false">Take a photo</a>   // B. version

I’d like to keep the animation and I also prefer that on the Camera page some event to be called (I’d like to use it for initialization). So I have the following questions.

  1. Do you know at least one event, that will be called, if I use the A. version for redirecting to other page?
  2. If I use version A., could I somehow call some event on the other page manually?
  3. Should I redirect to another page in some other way?

Could you give me some code samples, please?

  • 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-02T21:27:20+00:00Added an answer on June 2, 2026 at 9:27 pm

    I’d like to keep the animation and I also prefer that on the Camera page some event to be >called (I’d like to use it for initialization).So I have the following questions.

    Try using this to initialize your page with pageinit, or pageshow

    jQuery('[data-role="page"]').live('pageinit', function(){
      /* page initialization */
    })
    

    pageinit is fired once – when page is created in DOM, and pageshow is fired every time the page is shown

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

Sidebar

Related Questions

I have a need to use the tabs in my jquery mobile application. I
I have a single page jQuery mobile application that consists of several list views
I am developing HTML5, jQuery mobile application. I have to use 3rd party JSON
I want use JQuery mobile for the front-end of my mobile application, but I
I use jQuery, jQuery UI and jQuery mobile to build a web application for
I have a JQuery Mobile application and I seem to have several locations in
I am developing an Application with jQuery Mobile and Phonegap. I want to have
I am developing a mobile application and I have a click function in jQuery
I am building a jQuery mobile application using PhoneGap. I have to open a
I am creating an application by jQuery Mobile. I want a link, which redirects

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.