Software Archive
Read-only legacy content
17061 Discussions

Save preferences in xml o another, app develop

ANDRES_M_1
Beginner
509 Views

Hi guys, I had a question, is possible save preferences of an app in a XML archive or another way, for example, I created an app with HTML5, JQUERY mobile, CSS, and JSON, but I want to change for example the background color of a when I select a color input and save that in a XML or anywhere and close the app, when I open the app it get the color that I choose before.

Obviusly I do not want to use a server like PHP because I can do that with an account and password, the question is, ¿That is possible without a help of a server?

When I use eclipse that is possible because that use shared preferences of sdk, with XDK I can do that

0 Kudos
2 Replies
Hamilton_Tenório_da_
Valued Contributor I
509 Views

Yes, use local storage. 

See: window.localStorage.getItem and window.localStorage.setItem

0 Kudos
ANDRES_M_1
Beginner
509 Views

Thank you so much, I try that.

0 Kudos
Reply