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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:55:28+00:00 2026-06-04T10:55:28+00:00

Here is my Html code. What I am trying sounds simple but I am

  • 0

Here is my Html code. What I am trying sounds simple but I am not able to do so. I am trying to use Multi page template as suggest by jquery mobile. First page I have a text box and button. User enters a value in text box and then clicks the button which should take the user to “page2” and show the search details.

My code below is taking me to “page2” but I am not able to see any search results. I inserted an alert in between and that pops up with the data. Also the back button on page2 doesn’t take me to page1?

Any pointers are greatly appreciated.

<!DOCTYPE HTML>
    <html>
    <head>
    <title>Employee Finder</title>

    <script src="jquery-mobile/jquery-1.7.2.min.js"/>
    <script src="jquery-mobile/jquery.mobile-1.0a3.min.js"/>
    <script src="phonegap-1.3.0.js"/> 
    <script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"/>
    <link href="jquery-mobile/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css"/>

    <script> 

    $(document).ready(function() {
        $('#findemplyoee').click(function() {

          $.mobile.changePage('#page2', { transition: "slide", changeHash: true, reverse: true });

             var employeeNumber = $("#employeeNumber").val();
             var employeedetail = JSON.parse(... call a function here);

             if(employeedetail.found)
             {
                     $('#employeefirstName').text(employeedetail.firstName);
                     $('#employeelastName').text(employeedetail.lastName);
             }
             else
             {
                     $('#employeeDetails').html("<p>Sorry the employee Number you entered was not found!</p>");
             }

        });
    });

    </script>

    </head> 
    <body> 

    <div data-role="page" id="page1">
        <div data-role="header">
            <h1>Find Employee Data</h1>
        </div>

        <div data-role="content" id="searchDetails">    
           <input name="employeeNumber" type="text" id="employeeNumber"/>
           <input type="button" id="findemplyoee" data-theme="b" value="Find Employee"/>
        </div>

        <div data-role="footer">
            <h4>Page Footer</h4>
        </div>
    </div>

    <div data-role="page" data-add-back-btn="true" id="page2">
        <div data-role="header">
            <h1>Page Two</h1>
        </div>
        <div id="employeeDetails">
           <p id="employeefirstName"></p>
           <p id="employeelastName"></p>
        </div>
        <div data-role="footer">
            <h4>Page Footer</h4>
        </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-06-04T10:55:29+00:00Added an answer on June 4, 2026 at 10:55 am

    You should upgrade to jQuery Mobile 1.1!
    Your example works fine: http://jsfiddle.net/eUTga/

    I am pretty sure that your included jQuery version (jquery-mobile/jquery-1.7.2.min.js) is not well tested with the old jQuery Mobile (jquery-mobile/jquery.mobile-1.0a3.min.js) – or simply incompatible.

    Note that the jQuery Mobile team recommends to use jQuery 1.6.4 with the latest stable (1.1.0) on the jQM download site (http://jquerymobile.com/download/).

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
    <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use Jquery grid with asp.net, but its not working, it shows
Here's what I'm trying to do, simplified: <input rel=TimeStart> // bunch of HTML code
I am trying to follow Trees tutorial at: http://cslibrary.stanford.edu/110/BinaryTrees.html Here is the code I
I am trying to test some of these code here http://ha.ckers.org/xss.html on my code.
I am trying to get an HTML-based recursive directory listing based on code here:
not sure why I find this so difficult. Here is the html code: <tr>
Here is a part of my html code (video urls marked with a django-template
I have this html code that i want to edit with jQuery. Here is
I have a simple situation here. lets face html code first => <form name=geoKey
I'm trying to increment through JQuery loop to fill out some HTML code with

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.