Advice - Remote HTML content and Caching

Thread is closed for posting
3 posts, 0 answers
  1. Niro
    Niro avatar
    8 posts
    Member since:
    Aug 2014

    Posted 19 Mar 2015 Link to this post

    Hi All,

    To put it very briefly our solution currently contains a back-end sql database where a CMS allows users to create content , and the mobile app retrieves and displays this content in the appropriate views.

    The content is currently stored as HTML (no scripting allowed). the HTML is provided over a webservice when required and added to the view. The issue i am having is trying to come up with a solution for offline mode for the app. While i am currently storing the HTML in a kendo datasource which has offline options the external image links the HTML content will still refer to in the back end wont work.

    Before trying to come up with a complex solution where i cache the images and change the links dynamically to refer to a local path etc , i was wandering if anyone else has a similar concept and a different solution for this ?

  2. Zdravko
    Zdravko avatar
    657 posts

    Posted 24 Mar 2015 Link to this post

    Hello Niro,

    The solution you have come across seems like the only one so far in case you want to show some images. Otherwise you can always display the alt attribute value of the img tag and warn the users that they are offline.

    As for the caching solution you can try this library which provides a lot of useful APIs.
    I hope it helps.


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

  3. Niro
    Niro avatar
    8 posts
    Member since:
    Aug 2014

    Posted 27 Mar 2015 in reply to Zdravko Link to this post

    Thanks heaps Zdravko - the plugin sounds like it would work well for my problem! Will work on testng it in the app and provide any feedback if anyone else is after a similar option.

Back to Top