facebook

populate text field from local storage

  1. MobiOne Archive
  2.  > 
  3. Examples, HOW-TOs
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #324429 Reply

    thefenex
    Member

    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

Viewing 1 post (of 1 total)
Reply To: populate text field from local storage

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in