Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

how to transfer variable form page1 to page2?

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)?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to transfer variable form page1 to page2?

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...

Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

how to transfer variable form page1 to page2?

awesome, so localstorage functionality will work just fine when I export as native android/iso app, correct?

Return to “Issues”