Click here to get back home

java applet alternate text

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
java applet alternate text Jimbo 03-02-2007
Get Chitika Premium
Posted by Jimbo on March 2, 2007, 11:34 am
Please log in for more thread options


I have a website & applet produced under Windows-XP. It works fine. I took
it to a machine running Windows 98 & an earlier version of Java to test what
happens when I open the web page using IE6 & FireFox. The html invoking the
applet is:

<applet code="assumptions.class" archive="popproj.jar" width='760'
height='340'>
This applet was coded using Java 1.5.0_08-b03.</applet>

Instead of the expected text, both browsers said "Loading Java Applet
Failed...". How do I display the explanatory text?


Posted by Andrew Thompson on March 2, 2007, 11:55 am
Please log in for more thread options


> I have a website & applet produced under Windows-XP. It works fine. I took
> it to a machine running Windows 98 & an earlier version of Java to test what
> happens when I open the web page using IE6 & FireFox. The html invoking the
> applet is:
>
> <applet code="assumptions.class" archive="popproj.jar"

alt='Java must be enabled for this applet to work'

> ..width='760'
> height='340'>
> This applet was coded using Java 1.5.0_08-b03.</applet>
>
> Instead of the expected text, both browsers ..

Browsers, or MS' OS component?

>...said "Loading Java Applet
> Failed...". How do I display the explanatory text?

Try the 'alt' attribute, but some
PC/browser/plug-in/security setting
combinations will simply present a big
gray square (and not even a message),
no matter what you do.

You are better off looking to JWS, to
launch applets.
E.G. <http://www.physci.org/jws/#jtest>

HTH

Andrew T.


Posted by Jukka K. Korpela on March 2, 2007, 12:23 pm
Please log in for more thread options


Scripsit Andrew Thompson:

> alt='Java must be enabled for this applet to work'

Do you think that would be an ALTernative way of presenting the information
that would be conveyed by the applet if it were run?

>> This applet was coded using Java 1.5.0_08-b03.</applet>

That's of course very clueless. The content of an <applet> element is
supposed to specify an alternative content, not to act as a comment.

Thus, I think we can safely assume that the applet has no useful purpose,
so - assuming that it is retained - its content should be empty, and it
should have alt="" to signal that.

> Try the 'alt' attribute, but some
> PC/browser/plug-in/security setting
> combinations will simply present a big
> gray square (and not even a message),
> no matter what you do.

Indeed. That's one reason for avoiding Java applets on web pages. But if you
use them, the alternatives should make sense. One of the few browsers with
_adequate_ support to <applet>, Lynx, displays first the content of the alt
attribute, then the content of the element (excluding <param> elements of
course), so there should be no duplication in them. And, of course, if the
"alternative content" just babbles about software that the user is not using
and won't use, it will be a useful cluelessness indication.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Posted by murari garg on March 4, 2007, 2:53 am
Please log in for more thread options


> I have a website & applet produced under Windows-XP. It works fine. I took
> it to a machine running Windows 98 & an earlier version of Java to test what
> happens when I open the web page using IE6 & FireFox. The html invoking the
> applet is:
>
> <applet code="assumptions.class" archive="popproj.jar" width='760'
> height='340'>
> This applet was coded using Java 1.5.0_08-b03.</applet>
>
> Instead of the expected text, both browsers said "Loading Java Applet
> Failed...". How do I display the explanatory text?

i think when you were running your java programme then might be some
of the options in internet explorer for running java have some
problems.
you can check them by for(ie 6)

1. open internet explorer
2. go to tools and then options
3. in options go to advance options
4. you will see java small logo check that options
5. restart your computer

hope that this will going to solve your problem


Similar ThreadsPosted
run Java applet with from HTML April 27, 2007, 8:37 am
Java applet building tool - new version January 18, 2005, 8:06 am
Loading picture before the using java applet / progress bar or waiting message ? October 8, 2004, 12:05 am
Adjust style on ABBR or ACRONYM alternate text May 11, 2005, 2:47 pm
applet vs. object. vs embed? August 14, 2006, 11:08 am
alternate stylesheets August 12, 2004, 1:37 pm
preserve line breaks in applet parameters January 27, 2007, 10:10 pm
Persistent, default and alternate styles December 21, 2005, 11:40 am
open a java window from html October 8, 2004, 11:46 am
java apploet problem with mozilla and firefox February 22, 2005, 9:42 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap