阿贾克斯圈养网络助手iOS和OSX [英] Ajax on Captive Network Assistant on iOS and OSX

查看:217
本文介绍了阿贾克斯圈养网络助手iOS和OSX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问阿贾克斯工作的圈养的网络助手在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.

这篇关于阿贾克斯圈养网络助手iOS和OSX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆