jQuery UI Widgets Forums Lists ComboBox Offline Caching of Data Files not working

This topic contains 2 replies, has 2 voices, and was last updated by  mtbvfr 11 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • mtbvfr
    Member

    Hi Peter et al,

    I’m trying to use the following page in Offline mode (Mobile Safari, iOS 6.1.3, iPhone 3GS) but it doesn’t appear to be caching the customers.txt file which is used to load the Combo Box.

    Tabs-Splitter-Menu-ComboBox-Demo

    In the cache.manifest file I have the following line for the customers.txt file.

    /Javascript/jQuery/jQWidgets/jqwidgets-ver2.8.3/demos/sampledata/customers.txt

    After saving the page to the Home Screen and setting the phone to Airplane Mode and then reopening the page from the Home Screen, the Combo Box is blank.

    Any ideas?

    Thanks, Michael.


    Peter Stoev
    Keymaster

    Hi,

    You cannot cache something which works on the client side. It is realoaded each time. To cache data, you may use Cookies i.e save and load some data depending on certain condition . In addition, you should not that Ajax works with HTTP protocol so you should run scripts that load data through a Web Server(not offline).

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/


    mtbvfr
    Member

    Hi Peter,

    If the Javascript files can be cached, then, why not the customers.txt file?

    On the initial online access of a Mobile Web Application, can a text file (json, xml, csv, etc) be read and stored in Local Storage using the Web Storage API?

    Thanks, Michael.

    • This reply was modified 11 years ago by  mtbvfr.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.