Page-Loading Java Applet
Greetings,
thanks for stopping by. For a test if Java applets are being supported by my website visitor's browsers, I need a tiny and simple Java applet, which does actually nothing else than to load automatically a page in a target frame (given as two parameters - page and frame). And which displays a graphic (GIF or JPEG) (another parameter).
The purpose is that if a visitor accepts Java (s)he is being forwarded to a "Success" page, otherwise (s)he remains on the Java applet page.
Is there anyone who can create this simple Java applet? I don't have any Java skills. Thanks for time, intention and help! Greetings,
Sven
PS: To Admins: The same thread is inside the "New to Java" forum, but I think it fits better here. On demand please feel free to delete that thread inside the "New to Java" forum. Thanks.
# 1 Re: Page-Loading Java Applet
You wouldn't use java to check for support, use javascript or php or whatever your webpage is written in. I'm a little rusty on JS, but this might work.
<script type="text/javascript">
if (navigator.javaEnabled())
{
<meta http-equiv="refresh" content="0; url=hasJava.htm">
}
else
{
<meta http-equiv="refresh" content="0; url=nojava.htm">
}
</script>
# 2 Re: Page-Loading Java Applet
Greetings "Phaelax",
thanks for your help. Your example shows a Java script. Does it check for acceptance of Java, or of Java script acceptance?
I am interested to check for four different things: Java, Java Script, Cookies and Flash.
You also mention PHP. How would I test for Java and Java script by using PHP? I am programming in PHP.
The only check I know how to do is the check if cookies are allowed.
Thanks for your help, greetings,
Sven
# 3 Re: Page-Loading Java Applet
Hi, all :WAVE:
Could u plz help me out in solving a problem.....
My question is .....
How to embed the Applets into a JSP page....
or even into Servlet .........
Actually i am using WebLogic Server 8.1 as a Deployment tool....
Any body there to help me ...........
I am waiting for u r help ..................
thank u .......................