John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Do I Need any JS Code to store any values to Local STorage if Im already mapping?

this is what happens when theres a bad id value:

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Do I Need any JS Code to store any values to Local STorage if Im already mapping?

Ok, thanks for detailed information. Check if result actually stored in localStorage and its has an appropriate format to be sended.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Do I Need any JS Code to store any values to Local STorage if Im already mapping?

how do i check if its stored and what the value is?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Do I Need any JS Code to store any values to Local STorage if Im already mapping?

As for example: make a button and put the following JS code on it:
Image
where 'test' - is your localStorage variable.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Do I Need any JS Code to store any values to Local STorage if Im already mapping?

ok i did what you said and the result is empty just as i suspected. Somehow Its not storing the value it receives. And I know the service response works because I get a Success confirmation. When I get a success confirmation that means the server responded with some kind of value. See below for Success confirmation:

Image

Image

AND THE RESULT IN THE LOCAL STORAGE ITEM IS NOTHING AS YOU CAN SEE BELOW:

Image

Image

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Do I Need any JS Code to store any values to Local STorage if Im already mapping?

Please do let me know what is the problem here. Because I dont know what else to do. Thanks

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Do I Need any JS Code to store any values to Local STorage if Im already mapping?

my Truck project is already shared with you guys so feel free to check in to see what else i might be missing. Thanks.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Do I Need any JS Code to store any values to Local STorage if Im already mapping?

Ohh BTW, to get to the page:

Driver Login My Profile:

and valid driver cell phone #'s are:
"248-222-5555" should return a "1" for the id;
"248-555-2345" should return a "2" for the id;
"345-555-8765" should return a "3" for the id

any other number or anything else (no matter what it is even if its left empty) will result in the a server response of exactly "-1" always when theres not a valid driver cell phone # entered.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Do I Need any JS Code to store any values to Local STorage if Im already mapping?

Hi, in service driver_profile you get a number in response from server. As we see from your screenshot you called variable in response as " id", it's not right. Every variable without name should be called as $. In service driver_profile rename variable on response tab from id to $.

Return to “Issues”