Page 1 of 1

SyntaxError: Unexpected token ')' jquery-1.8.2.js:564

Posted: Wed Feb 13, 2013 6:54 pm
by Jeff Thompson

Hi,

I'm using the UI builder and have been getting this error when navigating from one page to the next. There is no custom javascript - only setting 2 local storage variables and navigating to a page. It never navigates to the page.

I get the following error: SyntaxError: Unexpected token ')' jquery-1.8.2.js:564

Here is the line 564: window[ "eval" ].call( window, data );

I've had this happen 2x and the only way out of it is to recreate the entire page. I'd like to know what a simpler fix is to the problem, or what I'm doing to cause it.

I've shared the project with you.

globalEval: function( data ) {
if ( data && core_rnotwhite.test( data ) ) {
// We use execScript on Internet Explorer
// We use an anonymous function so that context is window
// rather than jQuery in Firefox
( window.execScript || function( data ) {
window[ "eval" ].call( window, data );
} )( data );
}
},

Image


SyntaxError: Unexpected token ')' jquery-1.8.2.js:564

Posted: Wed Feb 13, 2013 7:07 pm
by Kateryna Grynko

Hi Jeff,
We will test it.


SyntaxError: Unexpected token ')' jquery-1.8.2.js:564

Posted: Wed Feb 13, 2013 7:24 pm
by Kateryna Grynko

On "EvoAirConfirmation" page, there is the following JavaScript action added on RestService:
codevar response = JSON.stringify(data));
localStorage.setItem("json_response", response);/code
The error is in the first string - it's an extra closing bracket.


SyntaxError: Unexpected token ')' jquery-1.8.2.js:564

Posted: Wed Feb 13, 2013 7:28 pm
by Jeff Thompson

That was removed prior to submitting this ticket. Still isn't working for me.


SyntaxError: Unexpected token ')' jquery-1.8.2.js:564

Posted: Wed Feb 13, 2013 8:00 pm
by Kateryna Grynko

Please check your Run JavaScript Actions again...


SyntaxError: Unexpected token ')' jquery-1.8.2.js:564

Posted: Thu Feb 14, 2013 2:10 pm
by Jeff Thompson

I double checked and I didn't see any JavaScript Actions left in the project, at least not visible through the UI. I ended up recreating the pages again.


SyntaxError: Unexpected token ')' jquery-1.8.2.js:564

Posted: Thu Feb 14, 2013 2:56 pm
by Maryna Brodina

Hello! After recreating pages you still get the same error?


SyntaxError: Unexpected token ')' jquery-1.8.2.js:564

Posted: Thu Feb 14, 2013 2:58 pm
by Jeff Thompson

No, all is fine. I'm now making frequent backups in case it reappears.