0
類型錯誤:Obj.EnableLog是不能在Firefox版本23.0.1類型錯誤:的OBJ [功能]不是函數
但在早期版本的Firefox我的javascript代碼工作的功能 ,
這裏是我的javascript代碼,
document.write('<applet code="BiomAPI.Legend.class" width="0" height="0" archive="BiomAPI.jar" id="Obj"></applet>');
document.write('<script language="vbscript" type="text/vbscript" src="LegendScript.vbs"> </script>');
function GetFeature (sUserID,iFingerID)
{
if(navigator.appName == "Microsoft Internet Explorer")
{
vbscript:vGetFeature (sUserID,iFingerID,hdnVerifyFeature);
}
else
{
if(hdnVerifyFeature==null)
alert("Invalid Hidden Field Argument Passed");
else
{
document.getElementsByName("Verify")[0].value = "";
var lsFeature = null;
Obj.EnableLog(0);
Obj.WindowTitle("Sample");
Obj.LocalFilePath("C:\\IMAGE\\");
Obj.EnableEncryption(1);
Obj.SessionID("abcde");
Obj.TimeStamp("Wednesday");
Obj.SaveImage(1);
Obj.GetFeature(sUserID,iFingerID);
lsFeature = Obj.Feature();
lsImage = Obj.StringImage();
Obj.WindowTitle("");
if (lsFeature != null)
{
document.getElementsByName("Verify")[0].value = lsFeature;
}
else
{
alert("Fingerprint not captured");
}
}
}
}
而我的HTML代碼,
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
</head>
<body>
<script language="javascript" type="text/javascript" src="LegendScript.js"> </script>
<table id="tableid" width="500" style="height: 100">
<tr align="center">
<td>
Verification</td>
</tr>
<tr>
<td>
Verification Template</td>
<td>
<input type="text" name="Verify" id="hdnVerifyFeature" runat="server" /></td>
</tr>
<tr>
<td>
</td>
<td>
<input type="button" id="btnRecog" value="Recognition" style = "width:150" onclick="GetFeature('0','0')" /></td>
</tr>
</table>
</body>
</html>
此JavaScript代碼不適用於mozila firefox 23.0.1。但是這個代碼將在早期的Mozilla Firefox版本中工作,請任何人告訴解決這個問題。如何在Firefox 23.0.1中啓用或使用JavaScript。我想在firefox 23.0.1中工作。
在此先感謝。