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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:38:10+00:00 2026-06-18T00:38:10+00:00

I have a simple html page: <!DOCTYPE html> <html> <head> <meta name=viewport content=width=device-width, initial-scale=1.2>

  • 0

I have a simple html page:

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.2">
    <link rel="stylesheet" href="js/jquery.mobile-1.2.0.css" />
    <script src="js/jquery-1.8.2.js"></script>
    <script src="js/jquery.mobile-1.2.0.js"></script>
</head>
  <body>
    <div id="c">

        <div data-role="page">
            <div data-role="header">
                <h1> My Title </h1>
            </div>                        
        </div>

    </div>
  </body>
</html>

when the page loads this is how jquery “parses/formats” the body of that html:

<body>
    <div id="c" class="ui-mobile-viewport ui-overlay-c">
        <div data-role="page" data-url="/jqueryMobile/TC_Page/main.html" tabindex="0" class="ui-page ui-body-c ui-page-active"
            style="min-height: 1464px;">
            <div data-role="header" class="ui-header ui-bar-a" role="banner">
                <h1 class="ui-title" role="heading" aria-level="1">
                    My Title
                </h1>
            </div>
        </div>
        <div class="ui-loader ui-corner-all ui-body-a ui-loader-default">
            <span class="ui-icon ui-icon-loading"></span>
            <h1>
                loading</h1>
        </div>
    </div>
</body>

Note that tags have new attributes. Now my question is how can I know what function of jquery mobile library is doing that? I will like to call the method that is doing that!


The reason why I will like to call that method is because I replace the content of div id ‘c’ with ajax and the page does not render as I want it to. In other words doing:

$.ajax({
    url: 'someUrl',
    success: function (result) {

        /*
         result = "content of first example" = 

              <div data-role="page"><div data-role="header"><h1> My Title </h1></div></div>
        */
         $('$c').html( result );   

         // I will like to call here something like:     $('#c').RrenderHtml();

    } 
});

does not renders as I want it to. The reason why it not renders correctly is because the tags in the div id c does not have the attributes that jquery created on them when the page loads.


A solution to this problem will be return:

  <div data-role="page" data-url="/jqueryMobile/TC_Page/main.html" tabindex="0" class="ui-page ui-body-c ui-page-active"
            style="min-height: 1464px;">
            <div data-role="header" class="ui-header ui-bar-a" role="banner">
                <h1 class="ui-title" role="heading" aria-level="1">
                    My Title
                </h1>
            </div>
        </div>
        <div class="ui-loader ui-corner-all ui-body-a ui-loader-default">
            <span class="ui-icon ui-icon-loading"></span>
            <h1>
                loading</h1>
  </div>

Instead of:

       <div data-role="header">
            <h1>
                My Title
            </h1>
        </div>  

On the ajax call. The problem with that solution is that I will have to figure out how each response will be formated on a new page by jquery when the page loads. Also some responses I am creating them dynamically like tables. Maybe I could create an iFrame place the jquery libraries in there also the response from the ajax call in the body wait for the page to load and then finally take the end resoult Hope I explained my self correctly.

  • 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-18T00:38:11+00:00Added an answer on June 18, 2026 at 12:38 am

    You don’t need to know the methods. There is already a method provided to enhance injected pages and it’s:

    .trigger('create')
    

    More on this here:

    • http://jquerymobile.com/demos/1.2.0/docs/pages/page-dynamic.html
    • http://jquerymobile.com/demos/1.2.0/docs/pages/page-scripting.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this simple html file <!DOCTYPE HTML> <html manifest=cache.manifest><head> <meta name=apple-mobile-web-app-capable content=yes>
I have the following simple page: <!DOCTYPE HTML> <html lang=en-US> <head> <meta charset=UTF-8> <title></title>
I have simple html page with php as given below: <!DOCTYPE html PUBLIC -//W3C//DTD
I have simple HTML page with svg like this: <div id=plan> <svg xmlns=http://www.w3.org/2000/svg version=1.1>
This is bugging me ... I have a simple HTML page that has a
I'm using PeerTracker http://en.wikipedia.org/wiki/PeerTracker to track torrent hashes. I have a simple HTML page
I have a very simple html page with the following javascript in it $(function()
In a simple html page I have: <SCRIPT> function Clicker(number){ if (number == 1)
I have a simple html form. On php page. A simple list is placed
So I have simple video tag on HTML 5 page playing OGG video. I

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.