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

  • Home
  • SEARCH
  • 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 8197035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:39:24+00:00 2026-06-07T05:39:24+00:00

I am trying to build a Web application using jQuery Mobile. When testing on

  • 0

I am trying to build a Web application using jQuery Mobile.
When testing on my desktop everything works as expected.
On Android (both 3.2 and 4.0.3) seems like JavaScript is disabled after navigating to second page.

My first page looks like:

<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
  href="script/jquery.mobile-1.1.0/jquery.mobile-1.1.0.min.css" />
<script type="text/javascript" src="script/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="script/jquery.mobile-1.1.0/jquery.mobile-1.1.0.min.js"></script>
</head>
<body>
  <div data-role="page">
    <div data-role="header">
      <h3>Jetty experiments:</h3>
    </div>
    <div data-role="content">
      <ul data-role="listview">
        <li><a href="HelloWorld" data-ajax="false">Hello World</a></li>
        <li><a href="sample-form.html">Sample Form</a></li>
        <li><a href="test.jsp" data-ajax="false">Test JSP</a></li>
      </ul>
    </div>
    <div data-role="footer">
      <button id="jquery-test">JQuery Test</button>
    </div>
  </div>
</body>
<script type="text/javascript">
    $(document).ready(function() {
        $("#jquery-test").click(function(event) {
            alert("OK");
        });
    });
</script>
</html>

My second page (that is sample-form.html):

<!DOCTYPE html>
<html>
<head>
<title>Collects text into a database</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
  href="script/jquery.mobile-1.1.0/jquery.mobile-1.1.0.min.css" />
<script type="text/javascript" src="script/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
  src="script/jquery.mobile-1.1.0/jquery.mobile-1.1.0.min.js"></script>
<script type="text/javascript" src="script/tempo.min.js"></script>
</head>
<body>
  <div data-role="page">
    <div data-role="header">
      <h3>Enter some text:</h3>
    </div>
    <div data-role="content">
      <form id="searchForm" method="get" action="SampleForm"
        data-ajax="false">
        <input type="text" name="text" /> <input type="submit"
          value="Submit" />
      </form>
      <ul id="names" data-role="listview">
        <li data-template>{{name}}</li> <!-- the template here does not work on Android -->
        <li data-template-fallback>Sorry, JavaScript required!</li>
      </ul>
    </div>
    <div data-role="footer">
      <button id="jquery-test">JQuery Test</button>
    </div>
  </div>
</body>
<script>
    var names;

    $(document).ready(function() {
        $("#jquery-test").click(function(event) {
            alert("OK"); // the alert here does not work on Android :(
        });
        names = Tempo.prepare("names")
    });

    // this binding does not work on Android
    $("#searchForm").submit(function(event) {
        event.preventDefault();

        $.getJSON("SampleForm", function(data) {
            names.render(data);
        });
    });
</script>
</html>

Any idea what am I doing wrong?
BR,
Adrian.

  • 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-07T05:39:25+00:00Added an answer on June 7, 2026 at 5:39 am

    In jQuery Mobile the document ready event is called once. Linked pages are loaded in same DOM and page init is triggered.

    http://jquerymobile.com/test/docs/api/events.html

    Here is another question:

    jQuery Mobile delegate vs live vs bind

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

Sidebar

Related Questions

I'm trying to build a 4-tier Web-Application in Java. I'm using the Hibernate Framework
I am trying to build a .NET web application using SQL to query AS400
I am trying to build a web service to interact with a mobile application
I am trying to build a free web application using ruby/rails It should be
I am trying to build a web app for Android device using Senahc Touch
I'm trying to build and deploy a web application using MSBuild and TeamCity. I've
I am trying to build an iPhone web application using ASP.NET. The page is
I'm trying to build a simple web application using Node.js and CouchDb. The application
I'm trying to deploy a web application using MSDeploy, on Team Build in TFS.
I am using Eclipse with GWT and trying to build a Web based application.

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.