How to create offline apps with DHTMLX Touch ?
DHTMLX Touch offers an easy way to create offline apps (the online apps which continue to work even when a network is unavailable).
Generally, to make an app work in offline mode you should use the dhx.proxy component. The component allows you to send web requests via HTTP proxy and store the latest successful data files and unsuccessful web requests locally.
var source = new dhx.proxy({ url: "./data.php", storage: dhx.storage.cookie });
var dp = new dhx.DataProcessor({ master:$$('mylist'), url: source });
var params = ["a=1", "b=2"]; // request parameters list source.post(params.join('&'), { success: function() { ... }, error: function() { ... } });
Related sample: 10_server/02_saving/08_dataprocessor_proxy_offine.html