Page 1 of 1

Pulling local URL from storage

Posted: Sun Nov 10, 2013 11:18 pm
by abigdreamer

I stored a URL (ip_address) specific to a customer login & password that I want to use throughout the program for REST services. How do I get this variable? I'm struggling.


Pulling local URL from storage

Posted: Sun Nov 10, 2013 11:27 pm
by Alena Prykhodko

Hello Mike,
If you store 'URL' variable in localStorage, then you can use the following code:

pre
localStorage.getItem('URL');
/pre


Pulling local URL from storage

Posted: Sun Nov 10, 2013 11:31 pm
by abigdreamer

the ip_address is inside the (backend ) database YOURS -- in the same table as the username and password. I'm having issues GETTING it to my {restvar}


Pulling local URL from storage

Posted: Sun Nov 10, 2013 11:35 pm
by Alena Prykhodko

Please tell what have you tried.
Did you check here http://docs.appery.io/documentation/b... ?