$.get callback not firing when GETting html from iis 7.5

WPreeradrulki

New Member
I've looked at this $.get is not working in my server and am pretty sure I have to do something special to make the callback fire.Problem is: I don't know what that is.This\[code\]$.get('myFile.html', function(data) { alert('duh');});\[/code\]downloads \[code\]myFile.html\[/code\] but never fires the callback. Why? What do I need to do to make the callback fire?Chrome->Developer tools->NetworkUnder \[code\]XHR\[/code\], the \[code\]GET\[/code\] shows \[code\]Status\[/code\] \[code\]200\[/code\]. I can even see the html source in \[code\]Response\[/code\] and the rendered html in \[code\]Preview\[/code\].$.ajaxError()This fires.'https://mysite.com/myFile.html'Same result as without the absolute path: the \[code\]GET\[/code\] shows \[code\]Status\[/code\] \[code\]200\[/code\]. I can even see the html source in \[code\]Response\[/code\] and the rendered html in \[code\]Preview\[/code\].$.ajaxError() \[code\]thrownError\[/code\]\[code\]alert\[/code\]s \[code\]SyntaxError: Unexpected token <\[/code\].
 
Back
Top