Page 7 of 9

saving labels to array

Posted: Fri Sep 27, 2013 11:57 pm
by Michael4771079

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


saving labels to array

Posted: Sat Sep 28, 2013 12:46 am
by maxkatz

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


saving labels to array

Posted: Sat Sep 28, 2013 12:58 am
by Michael4771079

This is what shows in scripts and network in firebug

Image

Image


saving labels to array

Posted: Sat Sep 28, 2013 2:01 am
by Igor

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.


saving labels to array

Posted: Sat Sep 28, 2013 11:49 am
by Michael4771079

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


saving labels to array

Posted: Sat Sep 28, 2013 12:04 pm
by Alena Prykhodko

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


saving labels to array

Posted: Sat Sep 28, 2013 12:12 pm
by Michael4771079

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


saving labels to array

Posted: Sat Sep 28, 2013 2:03 pm
by Igor

Hi Michael,

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


saving labels to array

Posted: Sat Sep 28, 2013 2:14 pm
by Michael4771079

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


saving labels to array

Posted: Sat Sep 28, 2013 3:56 pm
by Igor

"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