日期:2014-05-16 浏览次数:20730 次
function ReadQCardNo(){ if(OpenQ()){ var cardNo = OcxQCard.ReadSnr(); document.getElementById("labSrcCardNo").value = cardNo; T=2; CloseQ(); $.ajax({ type: "Post", url: "Save.jsp?Action=FillInfoBySrc", data: "SrcCardInfo=" +cardNo, success: function(data) { var arrAllFields = data.split(","); if (arrAllFields[0]=="true") { document.getElementById("labCard").value = arrAllFields[32]; } else if(arrAllFields[0]=="false"){ alert(arrAllFields[1]); } else{ alert("返回数据有误!!"); } //unblock('divParent'); }, complete: function(XMLHttpRequest, textStatus) { }, error: function() { alert("读取数据有误!!")} }) } }