Chris6743166
Posts: 1
Joined: Tue Mar 18, 2014 11:50 am

jquery error: Uncaught SyntaxError: Unexpected token )

Since the upgrade, I'm getting the following jquery error:

Uncaught SyntaxError: Unexpected token )

..when click on the 'Dates' and 'Staff' button on the homepage.

Here's a screenshot of the error:

Image

This is the app:
http://appery.io/app/view/25807b5d-c4...

It is share with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.

Your help is appreciated. Thanks.

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

jquery error: Uncaught SyntaxError: Unexpected token )

Hi Chris,

Could you please clarify whether you have changed app sources?

Chris6743166
Posts: 1
Joined: Tue Mar 18, 2014 11:50 am

jquery error: Uncaught SyntaxError: Unexpected token )

No. I have not edited sources.

Chris6743166
Posts: 1
Joined: Tue Mar 18, 2014 11:50 am

jquery error: Uncaught SyntaxError: Unexpected token )

I've solved the problem.

During the upgrade, some quotes were dropped from this line of javascript that is called on load:

Incorrect:
contactContent = contactContent.replace(/]*/g, );

Correct:
contactContent = contactContent.replace(/]*/g, '');

Strangely, this problem only occurred on two pages but not others.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

jquery error: Uncaught SyntaxError: Unexpected token )

Chris,

Thank you for the update, glad it works!

Return to “Issues”