Page 1 of 1

Uncaught exeption

Posted: Fri Oct 05, 2012 4:13 am
by Barbara

When clicking a link to a screen

a href="recipe.html" rel="nofollow"/a

I got this error in firebug

"uncaught exception: Syntax error, unrecognized expression: ."

But there is no indication where the error is coming from, and I can't find any syntax errors. This screen has loaded earlier with no errors.


Uncaught exeption

Posted: Fri Oct 05, 2012 5:15 am
by maxkatz

Try with Chrome Developer Tools, it might give you more information where the error is happening.


Uncaught exeption

Posted: Fri Oct 05, 2012 5:23 am
by Barbara

The error is coming from jquery code

Sizzle.error = function( msg ) {
throw "Syntax error, unrecognized expression: " + msg;
Uncaught Syntax error, unrecognized expression: .
};


Uncaught exeption

Posted: Fri Oct 05, 2012 8:05 am
by Maryna Brodina

Hello Barbara! Could you clarify how to reproduce it?


Uncaught exeption

Posted: Fri Oct 05, 2012 8:39 am
by Barbara

Thanks Marina.

To reproduce:

After logging in.
Access the menu and select "Search Recipes" then "Keyword"
Then access the menu again and select "Recipes"

It should go back to the Recipe page.


Uncaught exeption

Posted: Fri Oct 05, 2012 10:49 am
by Maryna Brodina

You have incorrect selector (Recipe screen, on Load event, Run Custom JS - 7 row):

if ($('.#menu').length == 0) - here shoul be ('#menu') if you select by ID
or ('.menu') if you select by class


Uncaught exeption

Posted: Fri Oct 05, 2012 12:17 pm
by Barbara

Thanks for finding that Marina, I feel really bad about asking you to find coding errors - sorry.

How did you find it? I find it really hard debugging my project as when I use firebug or chrome developer tools, the js for the current page is not available for me to set breakpoints on, only the js for the initial page in the project.