Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make XPages application work Offline with HTML 5

I am trying to make an xPages desktop application work offline, the challenge is how to make all the require resource available offline.

i have created the following manifest file and specified the same in pageManifest .

CACHE MANIFEST
#version: 0.0.15.7
jquery-1.10.2.min.js
angular.min.js
/DbPath/Angular.nsf/trashicon.gif
/DbPath/Angular.nsf/editicon.gif
/xsp/.ibmxspres/.mini/css/@Da&@Ib&2Tfxsp.css&2TfxspLTR.css&2TfxspSF.css.css
/xsp/.ibmxspres/dojoroot-1.6.1/dojo/dojo.js
/xsp/.ibmxspres/.mini/dojo/.en-us/@Iq.js
/DbPath/Angular.nsf/xsp/.ibmmodres/.css/bootstrap.min.css&custom.css
/DbPath/Angular.nsf/xsp/.ibmmodres/.js/jquery-1.10.2.min.js&bootstrap.min.js&angular.min.js&angularMisc.js

NETWORK:
/xsp/.ibmxspres/
/domjs/dojo-1.4.1/
/domjava/xsp/

I am not sure it is correct, it cache following image / Lib

/DBPath/Angular.nsf/trashicon.gif

/DBPath/Angular.nsf/editicon.gif 

/xsp/.ibmxspres/dojoroot-1.6.1/dojo/dojo.js

/xsp/.ibmxspres/.mini/dojo/.en-us/@Iq.js

and the main page...

but it does not cache the

/DBPath/Angular.nsf/xsp/.ibmmodres/.js/jquery-1.10.2.min.js&bootstrap.min.js&angular.min.js&angularMisc.js

which is important, may b i am doing it wrong. Also how can we cache the oneui theme . i am using Angular JS/JQuery which works fine when not cached, but it do not work with the manifest

if their is any simple example please share the link.

like image 932
anix Avatar asked Oct 21 '22 21:10

anix


1 Answers

What part of the app do you want to make available offline? If you're using full or partial updates, Server Side JavaScript and other server based stuff it cannot work offline.

like image 171
Julian Buss Avatar answered Oct 23 '22 15:10

Julian Buss