0755-89308183 |   English
banner2
认证流程

function getCert() { var queryResult=true; var certName=$.trim($("#txtzsid").val()); if(certName.length==0) { alert("证书编码不能为空!"); return; } var yzm=$.trim($("#yanz").val()); if(yzm.length==0) { alert("验证码不能为空!"); return; } $("#certTr").html(""); var oReq = createXMLHttpRequest(); if(oReq==undefined || oReq==null){ alert("刷新页面,再次查询!"); return; } try { oReq.open("GET", "/cert/"+certName+".jpg", true); oReq.responseType = "blob"; oReq.onreadystatechange = function () { if (oReq.readyState == 4) { if(oReq.status==200){ var img = document.createElement("img"); img.onload = function(e) { window.URL.revokeObjectURL(img.src); }; img.src = "/cert/"+certName+".jpg"; $(img).width("auto"); $(img).height("100%"); $("#certTr").html(img); } else { alert("没有找到你要查询的证书!"); return; } } } oReq.send(); } catch(e) { alert("没有找到你要查询的证书!"); return; } }; function createXMLHttpRequest() { var xmlhttprequest; if(window.XMLHttpRequest){ xmlhttprequest=new XMLHttpRequest(); if(xmlhttprequest.overrideMimeType){ xmlhttprequest.overrideMimeType("text/xml"); } }else if(window.ActiveXObject){ var activeName=["MSXML2.XMLHTTP","Microsoft.XMLHTTP"]; for(var i=0;i