I’d like to create a button on a catalogue page so that once tapped the user goes to the permalink with a textarea visible in order to write a caption (the default of the permalink is with the textarea hidden).
I’m trying to find a way of passing global variables between pages, i would like to avoid cookies, local storage for such a simple matter, also I cannot pass special parameters to the permalink such as &txt=open.
Only way is localStorage. You don’t want but you have to:P
Set:
window.localStorage.setItem(“nameofvariable”,value);
And get:
window.localStorage.getItem(“nameofvariable”);
Set value on the first page, and you can use it on another as long as you wish. Try read docs:
PhoneGap Storage
You are interested in content at the bottom of the page.
If you don’t use phonegap, write the same code, and delete “window.”. It should work, and solve your problem.