www.uburst.com www.uburst.com

"Checking for JAVA"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Programmer Tips
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Checking for JAVA"
Posted by Brian Levine on Jun-08-00 at 03:49 PM (EST)
I Know that this is off topic, but I still get plenty of "I can't see your prices" messages.

Is there some way of checking for JAVA on my main page, so I can throw up a warning?

Thanks!

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Checking for JAVA, Bill Weiner, Jun-09-00, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Checking for JAVA"
Posted by Bill Weiner on Jun-09-00 at 05:24 AM (EST)
An easy trick is to put a message like:

"You must have a Java-enabled browser to view this page"

...somewhere between the applet's start and stop APPLET tags. This way, if the browser does not support Java, instead of displaying the applet, the message will be displayed.

Here is an example (NOTE, however, that I left the greater-than and less-than signs off of the applet HTML because this forum doesn't display those symbols):

APPLET CODE = "uShopInputButton1.class" WIDTH=100 HEIGHT=35
You must have a Java-enabled browser to view this page.
PARAM NAME="id" VALUE="B00001"
PARAM NAME="name" VALUE="Romeo & Juliet"
PARAM NAME="description" VALUE="hard cover"
PARAM NAME="weight" VALUE="1"
PARAM NAME="price" VALUE="$ 19.95"
PARAM NAME="background" VALUE="white"
/APPLET

Note how I inserted that message just after the first line of the applet. This way, that line will be displayed only if the browser does not support Java.

On a side note, are you sure that the problem is that they don't have java enable? That is, make sure that the applets are not just getting cut off because of the WIDTH being to narrow. That is, make sure that you have the WIDTH of the applets large enough to work on both IE and Netscape (Netscape tends to require the WIDTH to be a little wider than IE....so just be sure to give a little extra room....10 or 20 pixels).

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.