Im new to Html language and I am trying to develop a PhoneGap App with it, I want to have 4 options in my main menu(index), and depending on what option the user taps load specific data from an xml. In order to load that specific data, I need to save a string that distinguish the option choose by the user and helps me find data in the xml.
How can I do this? I also heard something about some memory PhoneGap provides for this cases, couldn't find anything though, Thanks!
we pass values from one page to another with localStorage
/* Page A */
window.localStorage.setItem("id", "stringValue");
/* Page B */
var stringValue = window.localStorage.getItem("id");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With