Trying to populate a text field from the local storage when one of my .mobi pages opens…
I am able to retrieve the data from the local storage using:
function getData() {
var keyFirstName = ‘first_name’;
var dataFirstName = localStorage.getItem(keyFirstName);
var keyLastName = ‘last_name’;
var dataLastName = localStorage.getItem(keyLastName);
alert(‘Name: ‘ + dataFirstName + ‘ ‘ + dataLastName );
}
any ideas on how to bind this data to a text field… also where would I place the function to retrieve the data to have the text field populated when the page slides open?
sweet… appreciate any help anyone can give
thanks!
Jesse