So, I have a large project with a bunch of javascript stuff going on.
Now I did some testing with IE9 and on one event triggered AJAX-operation it aborts and tells me
Syntax Error: Expected ')'
but that’s all it says. It leaves me without any clue about where to start looking.
I’m using Dojo for most of the things I do and at this particular point I’m retrieving JSON-data with the AJAX-request. But I’ve ruled out an error in the JSON-string, simply because JSON ususally does not contain brackets (), right?
There also is a console.log(data) right after the request should be completed, but it doesn’t fire either. And I don’t see any fancy bracketwork before that, that could make IE lose it’s mind. But I might still be looking at the wrong spot, just trying to give as much info as possible here.
(btw: Firefox is fine with everything. No errors or warnings; everything runs just fine)
What’s the best way to debug this or possible causes?
It was the response from AJAX after all.
IE had problems sending all the
GETparameters resulting in an error message being mixed with the JSON code. I still don’t understand why it expected a)but fixing the response fixed the issue.