View Full Version : Load XML Offline

22 Feb 2011, 9:41 AM
I'm porting my Sencha Touch app to work with Phonegap in offline mode.
I'm currently reading an XML file through Ext.Ajax.request(), however, when I do it offline (locally), I get an cross site error Origin null is not allowed by Access-Control-Allow-Origin.

How can I make it work?

22 Feb 2011, 10:28 AM
might want to check out jsonp

22 Feb 2011, 11:11 AM
Thanks for the reply but I dont want to change the file format since I already have the parser setup for XML. It needs to work without making any calls to webserver, just read it from a local directory.

16 Jun 2012, 2:06 AM
check this out :
XmlP (The JsonP for XML data) : http://www.sencha.com/forum/showthread.php?215309-XmlP-(The-JsonP-for-XML-data)&p=834269#post834269 (http://www.sencha.com/forum/showthread.php?215309-XmlP-%28The-JsonP-for-XML-data%29&p=834269#post834269)