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

console errors

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

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

console errors

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

thx

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

console errors

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.

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

console errors

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

console errors

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.

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

console errors

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

console errors

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.

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

console errors

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 ?

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

console errors

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

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

console errors

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

Return to “Issues”