Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
Not applicable

can not login in qvs with safari through web form?

can not login in qvs with safari through web form?

I check it ,it throw a Exception ,

network_err:xmlhttprequest exception 101

5 Replies
adhudson
Contributor II

can not login in qvs with safari through web form?

Hi,

     Check whether you have enough permissions to the server/access point.

     And also check for intranet or related settings in safari.

Regards

Andrew Hudson

adhudson
Contributor II

can not login in qvs with safari through web form?

Hi,

     Which version of QVS you are using?

     Please refer to the URL below.

     http://stackoverflow.com/questions/3076547/xmlhttprequest-exception-101-on-nested-ajax-queries

     I suspect if it is a bug. Try to install the latest updated version of QVS, if you are using the old one.

Regards

Andrew Hudson

Not applicable

can not login in qvs with safari through web form?

I use Qvs 10.0 SR4.

Not applicable

Re: can not login in qvs with safari through web form?

function TryLogin(url, username, password, jQuery,callback) {

    url = url || "/QvAJAXZfc/Authenticate.aspx";

   jQuery.ajax({type:Get,

     url: url,

     async: true,

     password:password,

     username:username,

     complete:function(xmlhttp, status){

     var ok = (200 <= xmlhttp.status && xmlhttp.status < 300) || xmlhttp.status == 1223; // status 204 -> 1223 in IE

     if (ok) {

       callback(true);

     } else {

       callback(false);

     }

   }});

  return;

    var xmlhttp;

    if (window.XMLHttpRequest) {

        xmlhttp = new XMLHttpRequest()

    } else {

        xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");

    }

    xmlhttp.onreadystatechange = function() {

        if (xmlhttp.readyState == 4) {

//alert([1,xmlhttp.status])

            var ok = (200 <= xmlhttp.status && xmlhttp.status < 300) || xmlhttp.status == 1223; // status 204 -> 1223 in IE

//alert([2,ok])

            if (ok) {

                callback(true);

            } else {

                callback(false);

            }

        }

    };

    xmlhttp.open("Get", url, true, username, password);

    try {

        xmlhttp.send(null);//error here

    } catch (e) {

        alert(e.message)

        callback(null);

    }

}

Not applicable

Re: can not login in qvs with safari through web form?

Was this issue ever solved I am currently having the same issue with both Safari and IOS Devices? 

We are running Qvs 11 SR2