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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:12:45+00:00 2026-06-04T19:12:45+00:00

From my topic over @ jquery: https://forum.jquery.com/topic/multiple-pagebeforecreate-events-triggered-when-jqm-builds-the-page-for-nested-listviews-w-jsfiddle It’s understandable now, but a little unintuitive.

  • 0

From my topic over @ jquery:
https://forum.jquery.com/topic/multiple-pagebeforecreate-events-triggered-when-jqm-builds-the-page-for-nested-listviews-w-jsfiddle

It’s understandable now, but a little unintuitive. Google didn’t help much, and mostly pointed to “use pageinit not doc.ready()”. A note in the nested listview page would’ve saved some time. Is it just me or is this kinda unintuitive that the page is loaded before the click?

The question is: How do I detect the difference in events loads? Nothing shined while exploring the event object.

What am I talking about? 🙂
Updated by Daedalus: http://jsfiddle.net/3Shyb/
Original: http://jsfiddle.net/jhr007/mDVfP
In the jsfiddle, the messages are sent to the console log.
Open and clear the console. Run.

Notice the two messages about “pagebeforecreate Man handle the dom.. ” etc.. 1, then 2

If you edit the html and remove the nested <ul> ... </ul>, then run. You get the message once.

This occurs on every page load with a nav menu that has sub menus.


http://www.jquerymobile.com/demos/1.1.0/docs/lists/docs-lists.html

When a list item with a child list is clicked, the framework will generate a new ui-page populated with the title of the parent in the header and the list of child elements.
..
Lists can be nested multiple levels deep and all pages and linking will be automatically handled by the framework.

  • 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-04T19:12:47+00:00Added an answer on June 4, 2026 at 7:12 pm

    Solution I found was to use the NOW AND IN THE FUTURE bindings of live/delegate( deprecated in jq 1.7 ) like functionality.

    So add an id attribute to the div[date-role=page], then use the ‘on’ method to bind to the events on these ids(“#pageid1, #pageid2”), NOW AND IN THE FUTURE…

    $( document ).on( 'pagebeforecreate', "#pageid1, #pageid2" ,
        function (event) {
          console.log('pagebeforecreate ', event.target.id );
        }                    
      );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From what I've read, this topic has come up several times over the last
I'm having a serious issue with Internet Explorer caching results from a JQuery Ajax
While I have made a topic like this in the past, this is from
I'm working on a project that has these attributes: jQuery driving the page Unity
Background So, if you go to https://foursquare.com/ , and look under the header Recent
I created a topic branch from the master; made some commits. Then checked out
This general topic has been asked here multiple times: how to render UITableViewCells with
I've looked all over and found nothing about this topic - For people making
I am a final year computer science student from Mumbai University, India. The topic
My site is organized into topics. Users can switch between topics on any page,

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.