I am trying to call a URL using AJAX, it is giving 200 OK but the success function is not loading.
Any help would be greatly appreciated.
$(document).ready(function () {
$("#resulttable tr:even").addClass('grey');
$("#resulttable tr:odd").addClass('litegrey');
$(".upload_file").change(function () {
$("#fakefile").text($(".upload_file").val());
});
$("tr").click(function () {
$(this).after("<tr><td colspan=5><td></tr>");
$(this).next("tr").find("td").text(loadText());
});
});
function loadText() {
$.ajax({
type: "GET",
url: "http://www.google.com",
success: function (dataCheck) {
alert("hello");
}
})
};
Thanks