阿贾克斯圈养网络助手iOS和OSX助手、网络、阿贾克斯、iOS

2023-09-10 18:08:28 作者:野性

请问阿贾克斯工作的圈养的网络助手在iOS和OSX? 我使用的的jQuery 做到以下几点,但不工作。 该 的responseText 变来既不是真的还是假的。正常工作的正确的Safari浏览器以及Android和Windows设备。

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.

推荐答案

根据我们的实验,好像只有同步调用的封杀,因此异步:假的您的code。

From our experimentation it seems like only synchronous calls are "blocked", hence the async : false in your code.