I get a jQuery AJAX response from localhost with
var ajaxsrc = $.ajax({type:"GET", url: "http://localhost:4540/get.aspx?i=<%=Request.QueryString["i"] %>" ,data:"",dataType: "html"}).responseText;
alert(ajaxsrc);
IE alerts the correct text but Chrome alerts empty strings. When I check with developer console I see that it connects to get.aspx and retrieves data, however cannot handle withing my code.
Any advices?
From the jQuery.ajax page:
You need to have
async: falsein the settings object if you’re going to do that kind of assignment with.responseText.You’re probably better off passing a
successhandler, though…