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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:16:59+00:00 2026-06-18T10:16:59+00:00

i have 2 pages, index.html and about.html in a jQuery Mobile and Phonegap app

  • 0

i have 2 pages, index.html and about.html in a jQuery Mobile and Phonegap app

index.html

<!DOCTYPE html> 
<html> 
<head> 
    <title>Page Title</title> 
    ... load jquery and jquery mobile...
</head> 

<body> 
    <div data-role="page" id="index">
    ...content goes here...
        <a href="about.html"  data-role="button">about</a>
    </div>
</body>
</html>

and about.html has just the page data-role

<div data-role="page" id="about">
<a href="index.html" data-rel="back" data-icon="back" data-transition="slide">Back</a>
...content goes here...

<a href="#dialog" id="form_dialog" data-rel="popup">qweqwe</a>
<div data-role="popup" id="dialog" data-overlay-theme="a" data-position-to="window">
    <div data-role="content" data-theme="c">
        <a href="#page" data-role="button" data-theme="c" >Ok</a>
    </div>
</div>

</div>

the issue i am having is that once i load the about page the dialog and the back link don’t work.

if i place the popup html in the index it will work.

Also when the new page loads the styles are there so that means that jquery mobile is loaded.

Any ideas on this issue?

thanks

  • 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-18T10:17:00+00:00Added an answer on June 18, 2026 at 10:17 am

    From what I have seen your code works just fine.

    I have created these to files from your example_

    index.html

    <!DOCTYPE html>
    <html>
      <head>
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
            <script src="http://www.dragan-gaic.info/js/jquery-1.8.2.min.js"/></script>    
            <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"/></script>
      </head>
      <body>
            <div data-role="page" id="index">
            ...content goes here...
                <a href="about.html"  data-role="button">about</a>
            </div>  
      </body>
    </html>
    

    about.html

        <div data-role="page" id="about">
                <a href="index.html" data-rel="back" data-icon="back" data-transition="slide">Back</a>
                ...content goes here...
    
                <a href="#dialog" id="form_dialog" data-rel="popup">qweqwe</a>
                <div data-role="popup" id="dialog" data-overlay-theme="a" data-position-to="window">
                    <div data-role="content" data-theme="c">
                        <a href="#page" data-role="button" data-theme="c" >Ok</a>
                    </div>
                </div>              
        </div>
    

    Above code works just fine. Maybe you have a problem with a jQuery Mobile and jQuery version mismatch? Only problematic part of your code was this back button:

    <a href="index.html" data-rel="back" data-icon="back" data-transition="slide">Back</a>
    

    Do not use a href location with a data-rel=”back”, data-rel=”back” has a bigger priority, so it is not an error. Also this back button is not working correctly after popup has been closed. If you click it after popup has been closed it will first lead you back to about.html and second click lead you back to the index.html. This is not an error, popup counts as an another page action.

    So in case of your back button remove data-rel=”back”. This will fix it to work correctly on about.html page.

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

Sidebar

Related Questions

i have 2 pages, index.html and about.html index.html <!DOCTYPE html> <html> <head> <title>Page Title</title>
I have the following index.html page set-up: <html> <head> </head> <body> <div id=container> <div
I am using jQuery for a simple website and have a main page 'index.html'
Hello friends i have created two page one is index.html and second is about.html
So I have 4 pages. They are very simple. index.php (WORKS) <html> <form action=upload.php
I have a page in HTML(index.html), and a folders named images, css, js that
I am using rails beta 3 and I have a erb page named index.html.erb
I have the following jQueryMobile page anatomy at index.html: <div data-role=page> <div data-role=header>...</div> <div
If I have a single page with many forms of existing records: index.html.haml -
I have folders and pages /admin/add/index.php, /admin/edit/index.php & /admin/view/index.php which all are requiring 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.