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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:51:40+00:00 2026-05-28T07:51:40+00:00

I have a few pages made with jquery mobile. These pages are all separate

  • 0

I have a few pages made with jquery mobile. These pages are all separate files, such as register.php. Each file has one “page”, as in the literal jquery mobile div.page.

When I click a link, ajax calls this new file and extracts the div.page — rather than loading the new page like a standard link would.

I have a function, which was originally bound to the onload event for a specific page (register.php). Now, because it’s being pulled in with ajax instead of loading a new page, the javascript for that page never fires.

I need to use pageinit() or pagecreate() according to JQM docs – but they don’t explain how to do this…

I need to bind one of those events, probably pagecreate as I need to use my function after all elements are ready. But how do I distinguish one page from another using the same script?

If I have a link to register.js in my <head> for register.php only, it isn’t even used when pulled in via ajax – because it only pulls in the <body>.

Let’s say I have a function called register_form(). How do I call this every time register.php is opened? This includes clicking the back button.

I looked here, jQuery Mobile – pageinit and pagecreate only firing once. However, when you go to a different page the ID of the new page is not added.

  • 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-28T07:51:40+00:00Added an answer on May 28, 2026 at 7:51 am

    I believe it’s (unless they’ve changed it since I last used jqm)…

    $(document).bind('pageshow', function (e) {
       // ...
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a head file which I am using for a few different pages.
I have a few cascading dropdowns on the bottom of my php page. Each
I have a web application made in ASP.Net. Well, I have a few jquery
I have a few pages on my asp.net website that I would like to
I have a few pages and want that they use one style. See in
I have a few static pages that are just pure HTML, that we display
I have made the following javascript to be used in my jQuery based website.
I have been building my own carasol over the past few days. My Jquery
This is for a simple web-page assignment. I have a few pages on which
I have a page that is using jQuery to load an XML file, which

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.