X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=experiments%2Fspclient%2Fmkws.js;h=ee5c17a89a28de364fa0a32df27d5e785cfa7ce2;hb=4e11563b74f5eeb9dc8f0d6a5b305be6159e4339;hp=e3e5fe5d2955bc423b49d3568ada853c390c2a84;hpb=d2087a6ab238d78ec6c03f2ed4af451f71bb11ca;p=mkws-moved-to-github.git diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index e3e5fe5..ee5c17a 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -619,21 +619,18 @@ function mkws_service_proxy_auth(auth_url) { debug("Run service proxy auth URL: " + auth_url); - var jqxhr = jQuery.get(auth_url) - .fail(function() { - alert("service proxy authentication failed, give up!"); - }) - .success(function(data) { - if (!jQuery.isXMLDoc(data)) { - alert("service proxy auth response document is not valid XML document, give up!"); - return; - } - var status = $(data).find("status"); - if (status.text() != "OK") { - alert("service proxy auth repsonse status: " + status.text() + ", give up!"); - return; - } - }); + var request = new pzHttpRequest(auth_url); + request.get(null, function(data) { + if (!jQuery.isXMLDoc(data)) { + alert("service proxy auth response document is not valid XML document, give up!"); + return; + } + var status = $(data).find("status"); + if (status.text() != "OK") { + alert("service proxy auth repsonse status: " + status.text() + ", give up!"); + return; + } + }); } /* create locale language menu */