DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    7

    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.

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    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.

    Code:
    <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>

  3. #3
    Join Date
    Aug 2005
    Posts
    7
    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

  4. #4
    Join Date
    Sep 2006
    Posts
    1

    Question Hi, this is my first mail.....

    Hi, all

    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 ..............................

Similar Threads

  1. Java vs. .Net. A questionnaire
    By Basil in forum .NET
    Replies: 1
    Last Post: 05-13-2005, 06:46 AM
  2. Java applet window
    By crash75uk in forum Java
    Replies: 1
    Last Post: 04-20-2005, 03:32 PM
  3. Replies: 3
    Last Post: 08-23-2001, 11:01 AM
  4. Java Applet won't work via browsers
    By Graham in forum Java
    Replies: 1
    Last Post: 02-20-2001, 01:47 AM
  5. Java Applet staying in memory
    By Alison in forum Enterprise
    Replies: 0
    Last Post: 11-22-2000, 06:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links