how to transfer variable form page1 to page2?
Posted: Tue Sep 18, 2012 4:31 pm
by Eric5020946
question: variable typed by user into text field on page1 needs to be displayed on page2
I found this topic (1 year old) thats says it's not possible https://getsatisfaction.com/tiggzi/to...
would assigning values into hidden input or as attribute work in this case?
I could use local storage but will this feature work with phonegap (mobile app)?
how to transfer variable form page1 to page2?
Posted: Tue Sep 18, 2012 4:53 pm
by maxkatz
You can easily do it with local storage.
On page 1:
code
localStorage.setItem('name', value);
/code
On page 2:
code
localStorage.getItem('name');
/code
this tutorial shows how to do it: http://help.gotiggr.com/getting-start...
how to transfer variable form page1 to page2?
Posted: Tue Sep 18, 2012 5:18 pm
by Eric5020946
awesome, so localstorage functionality will work just fine when I export as native android/iso app, correct?
how to transfer variable form page1 to page2?
Posted: Tue Sep 18, 2012 5:55 pm
by maxkatz