Page 1 of 1

jquery error: Uncaught SyntaxError: Unexpected token )

Posted: Fri Oct 03, 2014 8:19 am
by Chris6743166

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.


jquery error: Uncaught SyntaxError: Unexpected token )

Posted: Fri Oct 03, 2014 10:22 am
by Kateryna Grynko

Hi Chris,

Could you please clarify whether you have changed app sources?


jquery error: Uncaught SyntaxError: Unexpected token )

Posted: Fri Oct 03, 2014 11:00 am
by Chris6743166

No. I have not edited sources.


jquery error: Uncaught SyntaxError: Unexpected token )

Posted: Fri Oct 03, 2014 4:05 pm
by Chris6743166

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.


jquery error: Uncaught SyntaxError: Unexpected token )

Posted: Fri Oct 03, 2014 4:24 pm
by Evgene Karachevtsev

Chris,

Thank you for the update, glad it works!