Page 1 of 2

console errors

Posted: Mon Apr 01, 2013 9:17 am
by Michael4771079

Hi,
I have the following errors, the syntax error on app opening, and the js errors when I try to open addresses screen, I can share app if it helps

cheers

Image


console errors

Posted: Mon Apr 01, 2013 10:11 am
by Michael4771079

Hi,
please ignore the above problem, I believe I have found issue

thx


console errors

Posted: Mon Apr 01, 2013 10:12 am
by Kateryna Grynko

Hi Michael,

Please, open JS asset "selectmenu" and check if there are any errors somewhere about the line:
code}wOption = $('<option value="'+value+'">'+label+'<&#47;option>');/code
Look like you have an incorrect code there.


console errors

Posted: Mon Apr 01, 2013 10:40 am
by Michael4771079

Thanks Katya,
I dont know how but the selectmenu.js was all corrupt, I checked with backup,

I imported backup and the errors above are gone,
however the app is hanging on address screen, wont open fully, just spinner,

error in console as the screenshot

I can share if necessary

Image


console errors

Posted: Mon Apr 01, 2013 12:22 pm
by Kateryna Grynko

JavaScript function "setSelectMenuOptionsForAddresses" seems to be called incorrectly. The second argument is an array of options that you want to display in Select Menu. Open the event / action where you call the function and check if arguments are sent correctly.


console errors

Posted: Mon Apr 01, 2013 12:40 pm
by Michael4771079

Hi Katya,
this is how I have called the service and this is the js used,
is this correct?

thx

codesetSelectMenuOptionsForAddresses(Tiggr('addressselectmenu'), myload('variable_name'));/code

Image


console errors

Posted: Mon Apr 01, 2013 1:22 pm
by Kateryna Grynko

Hi Michael,

Take a look at localStorage variable "variable_name". In firefox you can do this via FireBug on DOM tab:
Image

There should be an array in "variable_name" variable. If there is something else just clean the variable content.


console errors

Posted: Mon Apr 01, 2013 3:16 pm
by Michael4771079

Thanks Katya,
I have cleaned the variable content,
app works well in browser, no errors in console,
on iphone

  1. reg as new user and login

  2. save name,mobile and email on profile screen
    3 click addresses and page never loads just hangs,

    as I said no errors on console, but fails on iphone ?


console errors

Posted: Mon Apr 01, 2013 3:29 pm
by Maryna Brodina

Hello! Did you install app on iPhone or you test using mobile browser?


console errors

Posted: Mon Apr 01, 2013 3:43 pm
by Michael4771079

HI Marina,
installed on iphone 4s ios 6.01, I can share app if this helps