uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map
Checking for JAVA

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Jul-21-18 03:46 AM EST
Original Message
Checking for JAVA
Author Brian Levine on 06-08-2000 at 15:49 (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?


Table Of Contents
  RE: Checking for JAVA Bill Weiner, 2000-06-09 05:24:20 (1)

Messages In This Discussion
         1. RE: Checking for JAVA
        Author Bill Weiner on 06-09-2000 at 05:24 (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"

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 just be sure to give a little extra room....10 or 20 pixels).

© 2003 Microburst Technologies, Inc.