Hi,
I like to capture the location before sending out SMS.
Any easy way to do this ?
Hopefully, some Javascript code so I can see how ?
I am new, so more the code will help me better.
Thank you!
Hi, Igor,
tks a lot !
It works now, I forgot to getItem on loading the page.
This Developer Tools is very helpful in debugging !
Thanks !
Q - if I have
if (!window.localStorage.mytext) {
window.localStoarge.setItem('mytext','HELP ! HELP !');
}
console.info('mytext:' + localStorage.mytext);
where to see the console.info output ?
thanks !
I figured it out.
I forgot to load it when page reload, so it did not show up.
It is persistent across the pages and restart !
Excellent !
Thank you !
Any pointers to know the details ?
e.g. where is the localStorage ? in phone memory ? Will not lose it after a restart ?
how to write to files ?
I used
localStorage.setItem('text', input);
but it somehow lost the data after a page move or restart.
I like to send it to two numbers.
Hope you got some code example to share ?
I am doing a free charity project to help non-English speaking communities to send SMS to friends when they got an early stroke.
I just tested and the timestamp will be lost going from this page to another.
Please help me to save it as a persistent data .
The more code example the better for me .
Thank you.