This is a migrated thread and some comments may be shown as answers.

Advice - Remote HTML content and Caching

2 Answers 86 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Niro
Top achievements
Rank 1
Niro asked on 20 Mar 2015, 01:57 AM
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 ?

Cheers

2 Answers, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 24 Mar 2015, 02:18 PM
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.

Regards,
Zdravko
Telerik
 

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

 
0
Niro
Top achievements
Rank 1
answered on 28 Mar 2015, 03:28 AM
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.

Cheers
Niro
Tags
Apache Cordova
Asked by
Niro
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Niro
Top achievements
Rank 1
Share this question
or