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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:49:04+00:00 2026-06-15T17:49:04+00:00

Hey I used the following function to load a page using Jquery mobile $.mobile.changePage(

  • 0

Hey I used the following function to load a page using Jquery mobile

$.mobile.changePage( "http://localbhost:8080/Chat.htm", { transition: "slideup"} );

On the page loaded, Chat.htm, I am trying to call some javascript but it is not working. I am trying to use the code below to execute some JS. I also tried the pageload, pageinit and pagecreate, but none of them worked. I also tried

$(function(){ 
// code 
});

jQuery(document).live('pagebeforeload',function(event){
// code to execute
}

So is there some event in JQM, which could catch a page transition event, or there some other way I could call JS on the new loaded page.

  • 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-15T17:49:06+00:00Added an answer on June 15, 2026 at 5:49 pm

    It doesn’t work like that. By default JQueryMobile is going to fetch your page via AJAX and insert it into the dom. Any JS that’s on the loaded page is not going to get parsed. You want to listen for the pageshow event and put your code there. Example:

    $(document).on('pageshow', function (event) {
       ..your code here..
    

    See this for more information:

    http://jquerymobile.com/demos/1.2.0/docs/pages/page-navmodel.html

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

Sidebar

Related Questions

hey mates . recently i used jquery auto-complete tag http://devthought.com/projects/jquery/textboxlist/ everything goes fine except
Hey, I'm using a html form that is used to log people into my
Hey so i just took the following steps: Downloaded Box2d 2.1.2 and used cmake
Hey, I am trying to use mod_rewrite to make http://example.com/style/universal.css show the page http://example.com/style.php?n=universal
Hey, is there way to choose evenly distributed random numbers? I used this function
Hey, I have a html page which contains for example the following tags :
Hey folks I am trying to implement a search functionality in a website using
Hey folks..!! I m using styleManager.setStyleDeclaration to set the CssStyleDeclaration object for more then
Hey I'm used to developing in C and I would like to use C++
Hey guys, I haven't used the rpg pattern before, and had a quick question.

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.