Hello,
Ok I'm new , I know nothing about Java and I can't work out why I am having so much trouble. So here goes...
I have a simple Applet to beep the PC speaker
when compiled and run via DOS prompt everything works fine.
however when I put it in the HTML I don't seem to be able to call the applet to run it, i'm using...
and the JS console errors with object doesn't support this property or method.
Also when the Applet first loads I get a security error regarding the SSL (because it's on https) saying
Why is this showing we have a valid SSL certificate and the HTML is as follows
I guess i'm doing something stupid, or have really bad code but it seems you cannot beep the PC speaker from JavaScript, so this is my only option.
Hope someone can explain this to me.
Regards,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
Ok I'm new , I know nothing about Java and I can't work out why I am having so much trouble. So here goes...
I have a simple Applet to beep the PC speaker
Code:
public class beep_pc {
public static void main(String[] args) {
System.out.print("\007");
System.out.flush();
}
}
when compiled and run via DOS prompt everything works fine.
however when I put it in the HTML I don't seem to be able to call the applet to run it, i'm using...
Code:
document.applets("beepPC").beep_pc();
Also when the Applet first loads I get a security error regarding the SSL (because it's on https) saying
with a yes/no option.The site name "WWW" does not match the name on the certificate "www.mydomain.com"
Why is this showing we have a valid SSL certificate and the HTML is as follows
Code:
<applet code="[URL unfurl="true"]https://www.mydomain.com/beep_pc.class"[/URL] width="0" height="0" name="beepPC" mayscript></applet>
I guess i'm doing something stupid, or have really bad code but it seems you cannot beep the PC speaker from JavaScript, so this is my only option.
Hope someone can explain this to me.
Regards,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.