Matthew Pickard
Posts: 0
Joined: Wed Jun 25, 2014 4:09 pm

Uncaught SyntaxError: Unexpected identifier jquery-1.9.1.js:603

Hello,

I got my app working great the other day, then I realized that I was missing a column in my "users" db. When I added the column and manually added values I then re-tested the loginService and Automantically Added the Response and remapped my login page. Now I'm getting a "Uncaught SyntaxError: Unexpected identifier in jquery-1.9.1.js:603" when I test the app and try to login. I even tried a wrong password and my error alert worked perfectly. Once again, I feel that I may have missed a very minor detail.

Matthew Pickard
Posts: 0
Joined: Wed Jun 25, 2014 4:09 pm

Uncaught SyntaxError: Unexpected identifier jquery-1.9.1.js:603

I might also add that I am getting the same error at "jquery-1.9.1.js:7985"

"
// If no transport, we auto-abort
if ( !transport ) {
done( -1, "No Transport" );
} else {
jqXHR.readyState = 1;

Code: Select all

// Send global event 
if ( fireGlobals ) { 
 globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); 
} 
// Timeout 
if ( s.async && s.timeout  0 ) { 
 timeoutTimer = setTimeout(function() { 
  jqXHR.abort("timeout"); 
 }, s.timeout ); 
} 

try { 
 state = 1; 
 transport.send( requestHeaders, done ); 
} catch ( e ) { 
 // Propagate exception as error if not done 
 if ( state < 2 ) { 
  done( -1, e ); 
 // Simply rethrow otherwise 
 } else { 
  throw e;  [b]*****This is where I get the error****[/b] 
 } 
} 

}

Matthew Pickard
Posts: 0
Joined: Wed Jun 25, 2014 4:09 pm

Uncaught SyntaxError: Unexpected identifier jquery-1.9.1.js:603

Upon further testing, I tried the "Render all pages in one HTML file (jQuery Mobile multi-page template)" and it worked. Are there any limitations if I leave it in this mode?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Uncaught SyntaxError: Unexpected identifier jquery-1.9.1.js:603

Hi Matthew,

Please give us your app public link. And provide steps to reproduce this problem.

We will take a look.

Regards.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Uncaught SyntaxError: Unexpected identifier jquery-1.9.1.js:603

Matthew,

Your problem is on "UserPage" page.

See details on screen shots:

http://prntscr.com/3wwwg4/direct

http://prntscr.com/3wwwqn/direct

So you need to delete this "o" character in line of code:

pre

o Apperyio("my_location")&#46;val(localStorage&#46;getItem("lat") + "," + localStorage&#46;getItem("lng"));

/pre

Regards.

Matthew Pickard
Posts: 0
Joined: Wed Jun 25, 2014 4:09 pm

Uncaught SyntaxError: Unexpected identifier jquery-1.9.1.js:603

Perfect. Thank you. Must hat tapped the keys...

Return to “Issues”