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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:36:12+00:00 2026-05-30T23:36:12+00:00

how to pass a hash value manually to a next page in jquery mobile

  • 0

how to pass a hash value manually to a next page in jquery mobile and receive it in a pagecreate / pageshow

i tried following when a button gets clicked on page1

   $.mobile.changePage('#page2?val=1', { 
                transition: 'slideup'       
            }

           );

HTML Page Code

<html>
<head><title>jQuery Mobile Test</title></head>
<body>
    <div id="page1" data-role="page">
        <div data-role="header">
            <h1>Page 1</h1>
        </div>
        <div data-role="content">
            Place content here
            // i tried this too but didnt receive at the pagecreate of pge 1
            <a href="#page2?val=1" data-role="button">Send Value</a>            

        </div>
        <div data-role="footer">
            <h1>Footer</h1>
        </div>
    </div>
    <div id="page2" data-role="page" data-add-back-btn="true">
        <div data-role="header">
            <h1>Page 2</h1>
        </div>
        <div data-role="content">
            Place content here
        </div>
        <div data-role="footer">
            <h1>Footer</h1>
        </div>
    </div>
</body>
</html>
  • 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-30T23:36:13+00:00Added an answer on May 30, 2026 at 11:36 pm

    Ok, it looks like jqm does not support this:

    jQuery Mobile does not support query parameter passing to
    internal/embedded pages.

    However, their documentation offers to plugins that may help you:

    There are two plugins that you can add to your project if query
    parameters are needed between pages. There is a lightweight page
    params plugin and a more fully featured jQuery Mobile router plugin
    for use with backbone.js or spine.js.

    Found in the section called “Passing parameters between pages” here: http://jquerymobile.com/test/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

Do these two statements pass the same type of argument (a Hash) to the
I pass in the following XML to XMLin : <root foo=bar foo2=bar2> <pizzas> <pizza>Pepperoni</pizza>
How do you pass $_POST values to a page using cURL ?
How can my strings have different hash codes but the same text value of
I have to pass two references as arguments to a subroutine (buildRanges) as hash
How to pass range in hash to iterate from index 1 to last? h
I have a hash with some key/value pairs my %hash = ('key1','value1', 'key2', 'value2');
I need to pass (via string content of a HTTP request/response body) name value
I have the following code to encrypt a value (listed below). Now I would
I need a more-efficient way to pass the params hash to a named route,

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.