Page 1 of 1

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

Posted: Fri Jun 27, 2014 1:57 am
by Matthew Pickard

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.


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

Posted: Fri Jun 27, 2014 2:16 am
by Matthew Pickard

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] 
 } 
} 

}


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

Posted: Fri Jun 27, 2014 2:21 am
by Matthew Pickard

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?


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

Posted: Fri Jun 27, 2014 2:37 am
by Yurii Orishchuk

Hi Matthew,

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

We will take a look.

Regards.


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

Posted: Fri Jun 27, 2014 2:39 am
by Matthew Pickard

http://appery.io/app/mobile-frame?src...

can login using:
un: matt
pw: matt


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

Posted: Fri Jun 27, 2014 3:19 am
by Yurii Orishchuk

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.


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

Posted: Fri Jun 27, 2014 3:28 am
by Matthew Pickard

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