beautypg.com

HID ActivID Web Soft Token and Citrix XenApp User Manual

Page 9

background image

ActivIdentity Web Soft Token Option for Citrix® XenApp™ | Integration Handbook

P 9

External Use | May 31, 2012 | © 2012 ActivIdentity

// Wait for 60 tries which have 500ms delays so 30 seconds

nAICounterLimit=parseInt(60);

AIcheckAppletLoad();

}

function AIcheckAppletLoad() {

// After some time stop waiting for applet load

nAICounter++;

if (nAICounter>nAICounterLimit) {

AIshowError("<%=wiContext.getString("AITokenLoadFailure")%>");

//hideToken();

return;

}

// Wait until the applet is loaded

var bName = navigator.appName;

var applet = document.getElementById("webtoken");

if (bName.indexOf("Microsoft") == -1) {

if (typeof applet === "undefined") {

setTimeout("checkAppletLoad()", 500);

return;

}

} else {

if ((applet==undefined)||(applet==null)) {

setTimeout("checkAppletLoad()", 500);

return;

}

}