Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

saving labels to array

OK Folks,

the code is in the following mapping from localstorage array to db array

Image

cant check console because app won't load, just get spinner on login scren

Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

saving labels to array

Check the Network tab -- you might see the failing request there.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

saving labels to array

This is what shows in scripts and network in firebug

Image

Image

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

saving labels to array

There is JS error on "Choose" screen-"restservice11"-"favorites"-"Edit JS".
Your code:

pre
ar i, j, arr, tmpArr, obj;
/pre

should be:
pre
var i, j, arr, tmpArr, obj;
/pre

You missed one symbol.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

saving labels to array

Hi,
I have corrected error to js in mapping that Igor noticed
when I test click on save button I get the following error?

Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

saving labels to array

Do you use tmpArr in some other functions? Please check your code.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

saving labels to array

Hi Alena,
No I dont use tmpArr in other functions, it has been added to mapping in "favoritesupdate" service

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

saving labels to array

Hi Michael,

Could you please tell us how to reproduce this error? I can't get it.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

saving labels to array

Hi Igor
login to app, you can use "test" for name and pass,
click book button,
on selectmenu choose a town,
when collapsible appears, click the green save button,
this gives the error,

thanks Igor

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

saving labels to array

"favorites"-"Edit JS"

replace:
pre
for (i = 0, j = arr&#46;length; i < j; i++)
/pre

to
pre
for (i = 0, j = arr&#46;length-1; i < j; i++)
/pre

Return to “Issues”