Questions tagged [parse-error]

An issue with speech caused by code that fails to meet the syntax requirements of the programming language.

Troubleshooting an issue where an ASP.NET jQuery AJAX call to a PageMethod is resulting in a parsererror

It seems like the issue I'm facing is that the PageMethod is not returning JSON. Do I need to make any additional changes on the server side to ensure the return value is properly formatted? Is there a missing step that I am overlooking? (Please note ...

Encountering a "Parse error: syntax error, unexpected T_IF" while trying to use the return statement

I've encountered a parse error in some code I'm working on. When trying to create an if function outside of the $return variable and referencing it with a session, it works fine. However, I know this isn't considered "good" coding practice. How can I res ...

Error encountered while parsing data in Internet Explorer versions 7, 8, 9, and 10 due to an invalid character. The status

This block of code is functioning correctly on Chrome and Firefox, however it seems to be having issues with Internet Explorer! It involves a simple JSON file call, fetching data, and then displaying it on an HTML webpage. Here's the code snippet: $.ajax( ...

Having issues with the "Uncaught SyntaxError: Unexpected token <" error message

I have been able to successfully send a request to a Basecamp XML file using ajax, but I am encountering an error in Google Chrome: Resource interpreted as Other but transferred with MIME type undefined. Uncaught SyntaxError: Unexpected token < Firefo ...