Does ajax work on Captive network Assistant on iOS and OSX? I am using jquery to do the following, but does not work. The responseText variable comes neither as true or false. Works fine on proper Safari browser as well as for android and windows devices.
Also, is there any documentation available for Captive network Assistant? I am unable to find any on google.
function checkEmailHost(hostname) {
if ($.ajax({
type : "GET",
url : "welcome/emailvalidate",
data : "hostname=" + hostname,
async : false
}).responseText == "true") {
return true;
} else {
return false;
}
}
Thanks in advance.
From our experimentation it seems like only synchronous calls are "blocked", hence the async : false
in your code.
来源:https://stackoverflow.com/questions/20843992/ajax-on-captive-network-assistant-on-ios-and-osx