iphone - JQuery .load() function silently fails when offline -


I am trying to write an iPhone offline webpage using jqtouch / jquery when I disable my connectivity, So it seems that jquery. The Load () function silently fails and its callback function does not even call. I $ AjaxSetup ({cache: true}) is set; But there is no effect in it. I have a MANIFEST file etc. - Working OK - There is only problem. Load () function.

Any thoughts?

Are you serving your manifest files with the correct MIME type? From:

In addition, the manifest should be served with a MIME type text / cache-mainfest, which you can complete on most servers with the .htaccess command:

 AddType text / cache-manifest Manifest 

To implement the cache manifest, just refer it to your HTML:

 & lt; Html manifest = "sample.manifest"> 

Comments