Search found 25 matches

Go to advanced search

by Walter Lee6162535
Sun Sep 15, 2013 8:05 pm
Forum: Issues
Topic: This initial setItem works in PC browser, but not my phone ? Any help >?
Replies: 3
Views: 787
 
Jump to post

This initial setItem works in PC browser, but not my phone ? Any help >?

I worked around it with below code, seems working fine now. So, no initialization issue now, but like to ask some other simple q. Some q: 1/ can I use the same name for localStorage and variable ? e.g. var mytime = localStorage.getItem('mytime'); ? 2/ can I just initialize the timestamp to any text ...
by Walter Lee6162535
Sun Sep 15, 2013 7:51 pm
Forum: Issues
Topic: any easy way to add location ?
Replies: 3
Views: 1296
 
Jump to post

any easy way to add location ?

It is for my free charity project for early stroke patient. I wrote the sending SMS part already, but like to capture their current location and then append it in the SMS to be sent to their loved ones for help. So, it will be the current location of the phone. Hope something simple like JS which I ...
by Walter Lee6162535
Sun Sep 15, 2013 5:56 am
Forum: Issues
Topic: This initial setItem works in PC browser, but not my phone ? Any help >?
Replies: 3
Views: 787
 
Jump to post

This initial setItem works in PC browser, but not my phone ? Any help >?

Hi, I wrote below JS to help check if any setItem already there on the page Load event. But it works in the PC browser, but not the phone. When I tried it on the phone, it will spin for ever and no screen shown. Do I miss any ? I just like to set some default values in setItem below if not yet set (...
by Walter Lee6162535
Sun Sep 15, 2013 5:27 am
Forum: Issues
Topic: any easy way to add location ?
Replies: 3
Views: 1296
 
Jump to post

any easy way to add location ?

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!

by Walter Lee6162535
Sat Sep 14, 2013 11:25 pm
Forum: Issues
Topic: Storing database locally on device and not on the cloud or database service of appery
Replies: 7
Views: 1148
 
Jump to post

Storing database locally on device and not on the cloud or database service of appery

Hi, Igor,

tks a lot !
It works now, I forgot to getItem on loading the page.

by Walter Lee6162535
Sat Sep 14, 2013 11:24 pm
Forum: Issues
Topic: Storing database locally on device and not on the cloud or database service of appery
Replies: 7
Views: 1148
 
Jump to post

Storing database locally on device and not on the cloud or database service of appery

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 ?

by Walter Lee6162535
Sat Sep 14, 2013 11:22 pm
Forum: Issues
Topic: How to log a timestamp ?
Replies: 6
Views: 1215
 
Jump to post

How to log a timestamp ?

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 !

by Walter Lee6162535
Sat Sep 14, 2013 7:00 pm
Forum: Issues
Topic: Storing database locally on device and not on the cloud or database service of appery
Replies: 7
Views: 1148
 
Jump to post

Storing database locally on device and not on the cloud or database service of appery

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.

by Walter Lee6162535
Sat Sep 14, 2013 4:45 pm
Forum: Issues
Topic: text from native text client
Replies: 7
Views: 1306
 
Jump to post

text from native text client

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.

by Walter Lee6162535
Sat Sep 14, 2013 4:40 pm
Forum: Issues
Topic: How to log a timestamp ?
Replies: 6
Views: 1215
 
Jump to post

How to log a timestamp ?

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.

Go to advanced search