Re: java detection test on a webpage with applet




"Oliver Wong" <owong@xxxxxxxxxxxxxx> wrote in message
news:UEM8g.8720$Qq.2813@xxxxxxxxxxx
"apa-sf" <adam.labedzki@xxxxxxxxx> wrote in message
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

Thank you, Oliver!

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


.



Relevant Pages

  • Includin files in the parent directory
    ... When I try to run this code on a Linux server, ... following error message: ... Warning: main: Failed opening '../parent.php' for inclusion ...
    (comp.lang.php)
  • Re: on input form showing error message for duplicate entry.
    ... | Subject: Re: on input form showing error message for duplicate entry. ... |> same validation in php since not all your visitors/customers will have ...
    (alt.php)
  • Re: [PHP] Re: http request problem
    ... while i am trying to access to another file, from another server it run ... this is the error message i get: ... browser on the same network where it fails in the PHP script? ... know your requests actually hit the server, ...
    (php.general)
  • PHP logs not working, and unable to send mail through sendmail via PHP
    ... am unable to view my php error log. ... logging and my mail options and suggest some things for me to try ... error displaying on production web sites. ... String to output before an error message. ...
    (comp.lang.php)
  • Re: [PHP] Re: http request problem
    ... however i did try to access other jsp file from the same server, ... i don't know why i keep getting the same error message file accessing ... browser on the same network where it fails in the PHP script? ... know your requests actually hit the server, ...
    (php.general)