I'm trying to make an AJAX call to this address https://uthsc.edu/faculty/com-myutdoc.php
$.ajax({
url: "https://uthsc.edu/faculty/com-myutdoc.php",
contentType: "application/json; charset=utf-8",
crossDomain: true,
dataType: "jsonp",
success: function (response) {
debugger;
console.log(response); // server response
},
error: function(a, b, c) {
alert("FAILED.");
}
});
I'm getting a jquery was not called error. Any idea why?
It come up with error because you make AJAX request to diffirent URL, I think. If you wanna make AJAX request to diffirent URL, your return data should be JSONP, so you won't see error anymore!. Take a look as JSONP!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.