我需要看到另一个服务器是否有档案。 因此,如果我叫。 如果该网页是真实的,如果该网页不复是假的。 我作了这样的尝试:
$.ajax({
type: HEAD ,
url: http://localhost/HTMLPage1.htm ,
success: function () {
},
error: function () {
alert("Unable to connect to secure checkout.");
return false;
}
});
But it returns an error every time. I was thinking maybe because of cross-domain scripting. Does anyone know how to make this work or have a method that does work?
感谢!