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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:20:46+00:00 2026-06-18T02:20:46+00:00

i have 2 pages, index.html and about.html index.html <!DOCTYPE html> <html> <head> <title>Page Title</title>

  • 0

i have 2 pages, index.html and about.html

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?id=1"  data-role="button">about</a>
    </div>
</body>
</html>

and about.html has just the page data-role

<div data-role="page" id="about">
...content goes here...
</div>

the problem is that when i click on the link to go to the about page and i try to get the url string, well, it shows me index.html

window.location.toString();

or

$.mobile.activePage.data('url');

both return index.html instead of about.html?id=1

i understand that the about.html gets loaded into the index page, but how to grab that id??

any ideas?

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-18T02:20:47+00:00Added an answer on June 18, 2026 at 2:20 am

    ChangePage method needs to be used to send parameters from one page to another:

    $(document).on('pagebeforeshow', '#index' ,function () {
        var parameters = $(this).data("url").split("?")[1];;
        parameter = parameters.replace("parameter=","");  
        alert(parameter);
    });
    

    If you want to find out more take a look at this ARTICLE, to make it transparent it is my personal blog. Or it can be find HERE. Look for a chapter called: Data/Parameters manipulation between page transitions

    • 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 in a jQuery Mobile and Phonegap app
I have the following jQueryMobile page anatomy at index.html: <div data-role=page> <div data-role=header>...</div> <div
I have the following page: <!DOCTYPE html> <html> <head> <meta charset=utf-8> <title>Title</title> <link rel=stylesheet
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
I have following URL in my few pages(http://something.com).. <a href=http://something.com>Home</a> <a href=index.html>Index</a> <a href=about.html>About</a>
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
If I have a single page with many forms of existing records: index.html.haml -

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.