Hi
i want to read network card identity of a machine using applet that only works on jre 1.6 & above. even applet loaded sucessfully on page loading , i was not able to call Applet methods with javascript. when i checked the applet functions by calling javascipt from button, it was working as expected. why i could not call applet function on load.
i found one error on IE " Object doesn't support this property or method"
below code working fine with firefox but not working with IE6 & 7
** script **
function getMAC(){
try{
var a=null;
var obj=null;
a=document.getElementById('jsap').readMACaddress();
alert('mac address:'+a);
}catch(e){
alert('error::'+e);
}
}
** /script **
** object type="application/x-java-applet"
classid="clsid:CAFEEFAC-0016-0000-0000-ABCDEFFEDCBA"
width= "180" height= "180" name="jsap" id="jsap"
**param name="archive" value="macaddr.jar"
**param name="code" value="com/mac/GeneralApplet"
**param name="mayscript" value="yes"
**param name="scriptable" value="true"
**/object
**input type="button" name="getmac" value="show" onclick="getMAC();" **
**script **
getMAC();
**/script **
please help me
Thanks Yohi