Hi all,
I have html/jquery based web app that loads data from an xml file upon document ready.
I also have a manifest.appacache that should cache the xml file. When i try running the app offline the xml will not load.
Where am I going wrong? This code is taken from inside an object (hence the methods & private_methods)
loadXML : function( ) {
var XML_url = "details.xml";
var isOnline = navigator.onLine;
if(isOnline)XML_url+="?"+Math.random();
$.ajax({
type: "GET",
url: XML_url,
dataType: "xml",
success: private_methods.parseXml
});
}
methods.loadXML.apply()