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

The Archive Base Latest Questions

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

I am using jQuery Mobile to create a web app.I have a problem with

  • 0

I am using jQuery Mobile to create a web app.I have a problem with the href link and my javascript code.
Here is my javascript code in my index.html and curate.html:

$(document).ready(function(){
   alert("Hello!");
});

In the html code, it’s just code of a navigation bar:

<ul>
    <li><a href="index.html">Home</a></li>
    <li><a href="curate.html">curate</a></li>
</ul>

So the problem is: when I on the home page, for instance, click the curate link to the curate page, the alert will not pop out. It seems the function is not called in javascript. However, it works if I reload the curate page. Same problem from the curate page to the home page.

The problem will be fixed if I change the html code as

<ul>
    <li><a href="index.html" >Home</a></li>
    <li><a onclick="gotoCurate()">curate</a></li>
</ul>

and add the js code in index.html:

function gotoCurate() { 
    window.location="curate.html"
}

Similar to the curate page.

I guess maybe when using href, the page isn’t really load. I add <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> in the head but it doesn’t work. For some reasons I would like to use href to direct between the pages. So does anyone know how can i fix the problem while keeping the href links?

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-04T04:16:29+00:00Added an answer on June 4, 2026 at 4:16 am

    The problem was caused by jQuery Mobile. Here is the detail: http://jquerymobile.com/demos/1.0a4.1/docs/pages/docs-pages.html

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

Sidebar

Related Questions

I have created a web page using JQuery Mobile that has a link at
I'm building a web app using jquery mobile that will have lots of images
I'm building a mobile web app with jQuery Mobile and I have a problem.
For my mobile app I am using jquery mobile with multipage layout (one html,
I have a web app of which I would like to create a mobile
I am developing a mobile app using HTML5, Javascript, jQuery Mobile, and offline storage.
I a using jquery mobile to create a mobile web page. I defined a
I'm using jquery-mobile with Ruby On Rails. I want to create a button link
I have created a sample web application using jQuery Mobile. I have created two
I'm using Jquery Mobile to create a mobile app in combination with phonegap. Now

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.