Re: java detection test on a webpage with applet
- From: "Rhino" <no.offline.contact.please@xxxxxxxxxx>
- Date: Thu, 11 May 2006 16:49:05 -0400
"Oliver Wong" <owong@xxxxxxxxxxxxxx> wrote in message
news:UEM8g.8720$Qq.2813@xxxxxxxxxxx
"apa-sf" <adam.labedzki@xxxxxxxxx> wrote in messageThank you, Oliver!
news:1147369144.899451.98240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Rhino: Thanks for your suggestion. Unfortunately it is not the best
solution in my case, as I wanted to put there some text with link
dependant on the selected lanugage (small php inclusion).
But if there will be no better way - I will use that :)
Anyone else have a other propositions? :]
see
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/using_tags.html
By following the advice in that link, I was able to get the following to
work:
<APPLET CODE = "com.foo.resume.ResumeApplet.class" CODEBASE = "." ARCHIVE =
"jar/ResumeApplet.jar" WIDTH = "620" HEIGHT = "466" ALIGN = "baseline">
Sorry, the applet cannot be displayed in this browser.
</APPLET>
The "sorry" text was somewhat lost among the other text on the page since it
was the same font so I tried:
<APPLET CODE = "com.foo.resume.ResumeApplet.class" CODEBASE = "." ARCHIVE =
"jar/ResumeApplet.jar" WIDTH = "620" HEIGHT = "466" ALIGN = "baseline">
<h1>Sorry, the applet cannot be displayed in this browser.</h1>
</APPLET>
That did NOT work; no paragraph appeared and there was no error message.
However, this DID work:
<APPLET CODE = "com.foo.resume.ResumeApplet.class" CODEBASE = "." ARCHIVE =
"jar/ResumeApplet.jar" WIDTH = "620" HEIGHT = "466" ALIGN = "baseline">
<em>Sorry, the applet cannot be displayed in this browser.</em>
</APPLET>
The following approach also worked, which should please the original poster
because it includes a link. Naturally, he/she will probably want a more
appropriate message and a link that goes somewhere more relevant.
<APPLET CODE = "com.foo.resume.ResumeApplet.class" CODEBASE = "." ARCHIVE =
"jar/ResumeApplet.jar" WIDTH = "620" HEIGHT = "466" ALIGN = "baseline">
<a href="http://yahoo.com">Sorry, the applet cannot be displayed in this
browser.</a>
</APPLET>
--
Rhino
.
- Follow-Ups:
- Re: java detection test on a webpage with applet
- From: Oliver Wong
- Re: java detection test on a webpage with applet
- References:
- java detection test on a webpage with applet
- From: apa-sf
- Re: java detection test on a webpage with applet
- From: Rhino
- Re: java detection test on a webpage with applet
- From: apa-sf
- Re: java detection test on a webpage with applet
- From: Oliver Wong
- java detection test on a webpage with applet
- Prev by Date: Re: java detection test on a webpage with applet
- Next by Date: Re: java detection test on a webpage with applet
- Previous by thread: Re: java detection test on a webpage with applet
- Next by thread: Re: java detection test on a webpage with applet
- Index(es):
Relevant Pages
|