Click to See Complete Forum and Search --> : web server


footsteps
02-21-2007, 08:56 AM
I have loaded a pre-written java to my web site. A flip page slideshow.
I can see it on the web (I have java on my computer) but other people just get a blank space when viewing the site.
Is there something I should be doing.:confused:

Khalid Ali
02-21-2007, 10:01 AM
post your pages link here, chances are that the applet is not being loaded from the source for the clients, but when you view it on your local machine web page knows where its at

footsteps
02-21-2007, 12:17 PM
www.natureswaygambia.com/new
Thanks

trepidity
02-21-2007, 12:54 PM
worked fine for me. I would check the computer you used to check it remotely and verify the java virtual machine is installed properly if at all. There is nothing wrong on your server's end.

footsteps
02-21-2007, 01:11 PM
Thanks. I believe you mean that the viewers computer must have the java virtual machine loaded.
Can I load an alternate image for non java viewers

Khalid Ali
02-21-2007, 01:19 PM
yes, I think there is a navigator.javaEnabled() javascript function, probably have to google to get the correct syntax. But this will only mean if a JVM is not installed then you will get a boolean value, however your issue may be caused by some older JVM, or a JVM that is not linked to a web browser etc.

mwmwnmw
02-21-2007, 10:09 PM
Just put your alternative image reference inside the <applet> tags. Anything between <applet> and </applet> that is not within a <param> set is rendered as default if the applet cannot be loaded by the browser. In other words, using your code...

<applet archive="bookflip.jar" code="bookflip.class" width="184" class="style7" style="height: 183px">
<param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
<param name="res" value="1">
<param name="image1" value="javasrc/villagers.jpg"> etc.

once you've finished your parameters put in the image reference...
<img src="proper path to my image" />

and then close out the applet set...
</applet>

If the browser can render the applet it will do so and ignore the image tag. If it cannot render the applet it will render the image instead.

agent_x91
02-27-2007, 04:10 AM
The best thing to put in there would probably be a warning that you need java to view the applet, and a link to the latest download. If you have an alternative prepared which would just as well as the applet, you may wish to consider whether or not the applet is really necessary.

footsteps
02-27-2007, 04:24 AM
My sentiment entirely.
The web site owner is concerned that having to download anything often frightens his customers. so alternate it has to be.