代码如下,火狐浏览器(7.0.1版本)中的java已经启用,java plug-in也安装了。
火狐运行时,alert(er);报错如下:TypeError: parent.leftFrame.document.myApplet.encryptFile is not a function我觉得是火狐需要设置什么,或者是这句代码parent.leftFrame.document.myApplet.encryptFile(this.document.forms[0].attachment.value);
不能在火狐中执行。
function doFileEncrypt () {
if(parent.leftFrame.document.myApplet == null){
window.alert("Encryption cannot continue as the Applet is not installed.");
}
else {
try {
window.alert("Starting File Encryption");
alert(this.document.forms[0].attachment.value);
parent.leftFrame.document.myApplet.encryptFile(this.document.forms[0].attachment.value);
window.alert("File Encryption Completed");
}
catch(er) {
if(er != "")
alert(er);
alert("Please also be advised that you will need to download and install the encryption software onto your machine in order for this feature to work.")
}
}
}
火狐运行时,alert(er);报错如下:TypeError: parent.leftFrame.document.myApplet.encryptFile is not a function我觉得是火狐需要设置什么,或者是这句代码parent.leftFrame.document.myApplet.encryptFile(this.document.forms[0].attachment.value);
不能在火狐中执行。
function doFileEncrypt () {
if(parent.leftFrame.document.myApplet == null){
window.alert("Encryption cannot continue as the Applet is not installed.");
}
else {
try {
window.alert("Starting File Encryption");
alert(this.document.forms[0].attachment.value);
parent.leftFrame.document.myApplet.encryptFile(this.document.forms[0].attachment.value);
window.alert("File Encryption Completed");
}
catch(er) {
if(er != "")
alert(er);
alert("Please also be advised that you will need to download and install the encryption software onto your machine in order for this feature to work.")
}
}
}
encryptFile是你自己applet的方法。。
应该是在FF里面不兼容