尝试使用智能卡读卡器从卡上读取信息,以便在网络上实施
<script type="text/javascript">
function comEventOccured(myform) {
try {
var obj = new ActiveXObject("mykadproweb.mykadproweb.jpn");
var strRet = obj.BeginJPN("FT SCR2000 0");
if (strRet == "0") {
document.forms[0].txtIDNum.value = obj.getIDNum();
document.forms[0].txtBirthDate.value = obj.getBirthDate();
document.forms[0].txtKPTName.value = obj.getKPTName();
document.forms[0].txtOldIDNum.value = obj.getOldIDNum();
document.forms[0].txtReligion.value = obj.getReligion();
document.forms[0].txtGender.value = obj.getGender();
document.forms[0].txtRace.value = obj.getRace();
document.forms[0].txtAddress1.value = obj.getAddress();
strRet=obj.getPhoto("c:\\myphotov1.jpg");
//load image
var file_location = document.getElementById('show_pic');
file_location.innerHTML='<img src="c:\\myphotov1.jpg" width="150px" height="200px"></img>';
obj.EndJPN();
}
else {
alert("mykadproweb message: " + strRet);
}
} catch (e) {
alert("mykadpro: You dont have MYKAD SDK or FT SCR2000 reader." + e.message);
}
}
</script>
有没有办法让我能够从本地目录中读取信息?
答案 0 :(得分:1)
不,出于安全原因,没有。