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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:00:36+00:00 2026-05-27T13:00:36+00:00

I’m working on a mobile website with jQuery Mobile. I know the framework puts

  • 0

I’m working on a mobile website with jQuery Mobile. I know the framework puts pages in cache so that it can make nice transitions between pages, reduce data transfer and so on.
But in my case it’s pretty boring because I think it doesn’t execute some JavaScript in my page. I’ll explain:

this page presents a form with a date field. I use mobiscroll to make a date-picker appear when the focus is on that field.

When I submit the form, if there’s a validation error (I use codeigniter), the server redirects to the form (repopulates the fields etc..) and then the date-picker doesn’t work anymore. If I initiate it from the JS console it works again so that’s make me think the JS code didn’t be re-executed when coming back to the form page.

I added data-ajax="false" as attribute of the form to make it work (I lost the pretty transition but I don’t really care). Is that the best solution ?

Then I looked for another way to do it definitively because the cache mechanism makes problems in other pages. So I found:

$(document).live("mobileinit", function() {
    $.mobile.ajaxLinksEnabled = false;
});

This should be completely deactivating the cache but it’s not the case. I tried to remove some data-ajax="false" and then I had the same problem as before.

So what’s the matter with the page caching mechanism? And why doesn’t $.mobile.ajaxLinksEnabled = false; work?

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-05-27T13:00:37+00:00Added an answer on May 27, 2026 at 1:00 pm

    I could get the

    $.mobile.ajaxLinksEnabled = false; 
    

    working and for my problem it was better to do

    $.mobile.ajaxEnabled = false; 
    

    I wasn’t loading the .js files in the right order. (see the mobileinit event http://jquerymobile.com/demos/1.0/docs/api/globalconfig.html)

    BUT I’m still wondering why my script wasn’t executed after each page load (or whatever for the ajax navigation system).

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I need a function that will clean a strings' special characters. I do NOT

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.