Page 1 of 1

Loading XML from external and then save to local storage

Posted: Sun May 12, 2013 12:33 pm
by Timo Sehrbruch

hey there.

I am loading an external XML file from my server into my app at startup, and what i now want to achieve:

Load XML on Appstart (working)
Check if internet connection is available
if YES:
Save successfully loaded XML to local storage
if NO:
post error notice


Loading XML from external and then save to local storage

Posted: Sun May 12, 2013 1:02 pm
by Alena Prykhodko

Hello!

You can create custom JavaScript with this request.
References could be useful:
http://docs.phonegap.com/en/1.8.1/cor...
http://docs.phonegap.com/en/1.8.1/cor...


Loading XML from external and then save to local storage

Posted: Sun May 12, 2013 1:36 pm
by Timo Sehrbruch

thank you, this is also working with the event generator inside appery itself. but I thought there might be an option for the xml request like

"get and save copy to local storage" or something.