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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:42:05+00:00 2026-05-27T03:42:05+00:00

I still don’t understand how I am supposed to write my pages in a

  • 0

I still don’t understand how I am supposed to write my pages in a jQuery Mobile middle-complexity project, I mean… here’s my hello world page:

<!DOCTYPE html> 
<html>
<head>
<meta charset="utf-8">
<title>Applicazione Web jQuery Mobile</title>
<link href="file:///D|/Programmi/Adobe/Adobe Dreamweaver CS5.5/it_IT/Configuration/Third Party Source Code/jquery-mobile/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css"/>
<script src="file:///D|/Programmi/Adobe/Adobe Dreamweaver CS5.5/it_IT/Configuration/Third Party Source Code/jquery-mobile/jquery-1.5.min.js" type="text/javascript"></script>
<script src="file:///D|/Programmi/Adobe/Adobe Dreamweaver CS5.5/it_IT/Configuration/Third Party Source Code/jquery-mobile/jquery.mobile-1.0a3.min.js" type="text/javascript"></script>
</head> 
<body> 

<div data-role="page" id="page">
    <div data-role="header">
        <h1>Pagina uno</h1>
    </div>
    <div data-role="content">   
        <ul data-role="listview">
            <li><a href="#page2">Pagina due</a></li>
            <li><a href="#page3">Pagina tre</a></li>
            <li><a href="#page4">Pagina quattro</a></li>
        </ul>       
    </div>
    <div data-role="footer">
        <h4>Piè di pagina</h4>
    </div>
</div>

<div data-role="page" id="page2">
    <div data-role="header">
        <h1>Pagina due</h1>
    </div>
    <div data-role="content">   
        Contenuto       
    </div>
    <div data-role="footer">
        <h4>Piè di pagina</h4>
    </div>
</div>

<div data-role="page" id="page3">
    <div data-role="header">
        <h1>Pagina tre</h1>
    </div>
    <div data-role="content">   
        Contenuto       
    </div>
    <div data-role="footer">
        <h4>Piè di pagina</h4>
    </div>
</div>

<div data-role="page" id="page4">
    <div data-role="header">
        <h1>Pagina quattro</h1>
    </div>
    <div data-role="content">   
        Contenuto       
    </div>
    <div data-role="footer">
        <h4>Piè di pagina</h4>
    </div>
</div>

</body>
</html>

Nice, isn’t it?

My third page (id=”page3″), for example, will be huge. Obviously I don’t want to write all my pages in a single html file, I will rather have a “page3.html” file.

I don’t want to avoid the nice jQuery mobile’s ajax navigation feature, so what’s the right way?

  • 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-27T03:42:06+00:00Added an answer on May 27, 2026 at 3:42 am

    you can have contents of “page3” in a different html file as

    content of Page3.html as:

    <html>
        <head>
            <title>...</title>             
                <link rel="stylesheet" href="jquery.mobile-1.0a1.min.css" /> 
                <script src="jquery-1.4.3.min.js"></script> 
                <script src="jquery.mobile-1.0a1.min.js"></script>
    
                <script type="text/javascript"> 
                    alert('This is Page 3');                
                </script>  
    
        </head>
        <body>
       <div data-role="page" id="page3">
        <div data-role="header">
            <h1>Pagina tre</h1>
        </div>
        <div data-role="content">   
            Contenuto       
        </div>
        <div data-role="footer">
            <h4>Piè di pagina</h4>
        </div>
    </div>
    </body>
    </html>
    

    Then on the main page you can have link for that page3.html as

    <a href="page3.html" data-role="button"  rel="external">Load Page 3</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a toggle switch with jquery but still don't understand how to trigger
I have been using jQuery for a year, but I still don't understand how
That's an issue I still don't understand. Sometimes I have to write: NSString* myVariable;
Something I still don't understand when performing an http-get request to the server is
Been looking through other answers and I still don't understand the modulo for negative
This question has been asked before but i still don't understand it fully so
After searching in the Net for about 4 hours I still don't understand Async
I read the JVM specification for the fpstrict modifier but still don't fully understand
I already read the datasheet and google but I still don't understand something. In
I've looked at sites and MSDN documentation but I still don't understand the last

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.