BeepPadUI/Workflow/shared/ccc.js
/* the caller to the below 2 functions has to implement the callback functions calBack(strReturn) which will be called upon completion of the async call */
the caller to the below 2 functions has to implement the callback functions calBack(strReturn) which will be called upon completion of the async call
the caller to the below 2 functions has to implement the callback functions calBack ( strReturn ) which will be called upon completion of the async call
function sendEmailValidation() {
    var xmlhttp;
    var strURL = "http://iws.corel.com/ipmws/sendEmailValidation" + getParamString();
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    else {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange = function () {
        var strReturn = "";
        if (xmlhttp.readyState == 4) {
            if (xmlhttp.status == 200) {
                strReturn = xmlhttp.responseText;
                var token = "<body>";
                var tokenIndex = strReturn.indexOf(token);
                if (tokenIndex > -1) {
                    strReturn = strReturn.substring(tokenIndex + token.length);
                    token = "</body>";
                    tokenIndex = strReturn.indexOf(token);
                    if (tokenIndex > -1) {
                        strReturn = removeAllSpaces(strReturn.substring(0, tokenIndex));
                        callBack(strReturn);
                    }
                }
            }
            else {
                callBack("1");    
            }
        }
    }
    xmlhttp.open("GET", strURL, true);
    xmlhttp.send();
}
function sendEmailValidation ( ) { var xmlhttp ; var strURL = "http://iws.corel.com/ipmws/sendEmailValidation" + getParamString ( ) ; if ( window . XMLHttpRequest ) { xmlhttp = new XMLHttpRequest ( ) ; } else { xmlhttp = new ActiveXObject ( "Microsoft.XMLHTTP" ) ; } xmlhttp . onreadystatechange = function ( ) { var strReturn = "" ; if ( xmlhttp . readyState == 4 ) { if ( xmlhttp . status == 200 ) { strReturn = xmlhttp . responseText ; var token = "<body>" ; var tokenIndex = strReturn . indexOf ( token ) ; if ( tokenIndex > - 1 ) { strReturn = strReturn . substring ( tokenIndex + token . length ) ; token = "</body>" ; tokenIndex = strReturn . indexOf ( token ) ; if ( tokenIndex > - 1 ) { strReturn = removeAllSpaces ( strReturn . substring ( 0 , tokenIndex ) ) ; callBack ( strReturn ) ; } } } else { callBack ( "1" ) ; } } } xmlhttp . open ( "GET" , strURL , true ) ; xmlhttp . send ( ) ; }
the caller to the below 2 functions has to implement the callback functions calBack(strReturn) which will be called upon completion of the async call
the caller to the below 2 functions has to implement the callback functions calBack ( strReturn ) which will be called upon completion of the async call
//http://www.corel.com/corel/ipm/sendEmailValidation.jsp was ATG url // for IE7 and higher // for IE6 //failed to send/connect