Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught SyntaxError: Unexpected Token - jQuery - Help!

Tags:

jquery

Please help me get to the bottom of this...the only file that this error is pointing to, is my jQuery file.

See the error I am receiving here. enter image description here

How do I find the line in the file that is throwing this error ?

Edit2: Here is a screenshot after Nathan's suggestion of replacing .js with .html or nothing at all: enter image description here

like image 794
marcamillion Avatar asked Mar 09 '11 16:03

marcamillion


1 Answers

If you look at the data property listed in the debugger to the right, it looks like you are trying to eval() some HTML code as JavaScript. My guess is would be that your AJAX request is rendering an HTML error or pointing to the wrong URL, and not getting JS back.

like image 198
Nathan Ostgard Avatar answered Oct 21 '22 16:10

Nathan Ostgard