I have this project that i been working on its still in development. but i just uploaded it to a free host just as a test run before i get a paid host. Here is the link http://laurent.0sites.net/. Here is the problem when using Google chrome i get a syntax error : Unexpected end of input. i have no idea what is causing this any help would be greatly appreciated
This particular error is one annoying fact about V8. In most cases your JavaScript is broken in some way. For example missing a }
or something like that.
Example given, this will yield "Unexpected end of input" too:
eval('[{"test": 4}') // notice the missing ]
But the root cause of the problems seems to be that the requested JSON url has a Content-Type of text/html
which Chrome apparently tries to parse as HTML, which then results in the unexpected end of input due to the fact that the included image tags are being parsed.
Try setting the Content-Type to text/plain
I think it should fix the issues.
Nonetheless, V8 could do a better Job about telling one exactly where the input ended unexpectedly.
I get this error when I have ommitted a closing brace character (})in JavaScript code. Check that your braces are properly balanced.