473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Detecting if the client browser disabled/allows java applets ?

On one of my web pages there is an java applets which works fine on my computer.
However I noticed on some other computer that the run of java applets are disabled.
I got an error message "Classnotfound"
Is there a way to detect (with cgi resp. javascript) if java applets are allowed?
I would like to show a simple picture instead of the applet pane if applets are not allowed.

Wladimir

Jul 23 '05 #1
12 4727
On Mon, 1 Nov 2004 20:30:55 +0100, Wladimir Borsov wrote:

This is not a Java question.
On one of my web pages
URL?
..there is an java applets which works fine on my computer.
However I noticed on some other computer that the run of java applets are disabled.
I got an error message "Classnotfound"
There is no such thing. I will make some guesses.
These machines are..
a) Running Win
b) Using IE as a browser
c) the browsers are throwing 'ClassNotFoundException's
<http://www.physci.org/codes/javafaq.jsp#exact>
<http://www.physci.org/codes/javafaq.jsp#appletie>
d) this reports '1.1.4'
<http://www.physci.org/pc/property.jsp?prop=java.version>
Is there a way to detect (with cgi resp. javascript) if java applets are allowed?
You can detect if Java is enabled using JAvascript,
but that is not the problem here.
I would like to show a simple picture instead of the applet pane if applets are not allowed.


Yes, to both the problem you thought you had, as well as the
problem I suspect you actually have. You need to fix both to
get the untlimate effect you want. Both can be done without
Javascript.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #2
On Tue, 02 Nov 2004 05:01:07 GMT, Andrew Thompson wrote:
This is not a Java question.


Oops! Try, "This is not a *Javascript* question".

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #3
Wladimir Borsov wrote:
Is there a way to detect (with cgi resp. javascript) if java applets are allowed?
I would like to show a simple picture instead of the applet pane if applets are not allowed.


<applet ...>
<param ...>
<param ...>
<param ...>
<p>The message here will only be shown when Java is disabled or not
supported.</p>
</applet>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jul 23 '05 #4
On Tue, 02 Nov 2004 07:42:27 +0000, Toby Inkster wrote:
<applet ...> .... <p>The message here will only be shown when Java is disabled or not
supported.</p>
</applet>


Wrong! The 'no applet' part of the applet element as specified
above *only* covers the situation where Java is not and never
has been installed. If Java is installed, but *disabled*, that
message will not show.

To cover that, you need to specify an 'alt' attribute, which
displays for browsers with Java installed, but disabled.

As an aside, the OP mis-diagnosed the actual problem.
The browser's concerned would not be getting any message that
included 'Classnotfound' (sic) if this was a problem with
the alt/alternate HTML parts of the applet element.
The JVM is obviously being invoked, to produce that message.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #5

"Wladimir Borsov" <wl*******@gmx.net> wrote in message
news:cm*************@news.t-online.com...
On one of my web pages there is an java applets which works fine on my computer. However I noticed on some other computer that the run of java applets are disabled. I got an error message "Classnotfound"
Is there a way to detect (with cgi resp. javascript) if java applets are allowed? I would like to show a simple picture instead of the applet pane if

applets are not allowed.

You don't really need to detect it. Anything inside of the APPLET or OBJECT
tags that you use to embed the applet (other than PARAM tags) is rendered on
browsers that aren't running Java.

<applet ...>
<param ...>
<param ...>
<p><img src="..." alt="..." ...></p>
</applet>

Jul 23 '05 #6
Wladimir Borsov wrote:
On one of my web pages there is an java applets which works fine on
my computer.
However I noticed on some other computer that the run of java applets
are disabled.
I got an error message "Classnotfound"
Is there a way to detect (with cgi resp. javascript) if java applets
are allowed?
I would like to show a simple picture instead of the applet pane if
applets are not allowed.


You put whatever you want between <applet> and </applet> which is then
displayed by browsers that do not support Java (or have Java deactivated).
However the "Classnotfound" error seems to be something different: What Java
version does your applet use? And what Java version do you have installed on
your computer?

Boris
Jul 23 '05 #7
<applet ...alt="">
<param ...>
<param ...><img src="file.gif">
</applet>

The Classnotfound error message is a different issue.

--
George Hester
__________________________________
"Wladimir Borsov" <wl*******@gmx.net> wrote in message news:cm*************@news.t-online.com...
On one of my web pages there is an java applets which works fine on my computer.
However I noticed on some other computer that the run of java applets are disabled.
I got an error message "Classnotfound"
Is there a way to detect (with cgi resp. javascript) if java applets are allowed?
I would like to show a simple picture instead of the applet pane if applets are not allowed.

Wladimir

Jul 23 '05 #8
On Wed, 03 Nov 2004 12:48:48 GMT, George Hester wrote:
<applet ...alt="">


That provides the message "" to anybody using an UA
with Java *disabled* (think library, corporate networks,
'school' and the internet cafe*), that's a wide audience
to which to present a message of ""...

* That is simply listing the people who may not have access
to Java *even if they wanted to*, let alone the home users
who *choose* not to install the Java plug-in.

But one more time. THIS IS NOTHING TO DO WITH JS.
(apologies for shouting)

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #9
"Andrew Thompson" <Se********@www.invalid> wrote in message news:jp****************************@40tude.net...
On Wed, 03 Nov 2004 12:48:48 GMT, George Hester wrote:
<applet ...alt="">


That provides the message "" to anybody using an UA
with Java *disabled* (think library, corporate networks,
'school' and the internet cafe*), that's a wide audience
to which to present a message of ""...

* That is simply listing the people who may not have access
to Java *even if they wanted to*, let alone the home users
who *choose* not to install the Java plug-in.

But one more time. THIS IS NOTHING TO DO WITH JS.
(apologies for shouting)

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane


Hi Andrew. Actually I have never seen it work too well. The user wanted an image and what I provided did do
that. I try to answer the questions as they are posed. So yes alt="Hi" is supposed to present "something" to the
user when the browser is Java challenged I just never seen it work too well. The image replacement does. He
could also just insert text there as well instead of the image.

George Hester
__________________________________
Jul 23 '05 #10
On Thu, 04 Nov 2004 00:50:44 GMT, George Hester wrote:
So yes alt="Hi" is supposed to present "something" to the
user when the browser is Java challenged I just never seen it work too well.


I OTOH, have witnessed it working perfectly.

All indications from your posts are that you have
a) never used a browser other than IE, and..
b) do not have the first clue about how to get applets into
a web-page for a wide variety of users.

Please stop confusing the OP.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #11
"Andrew Thompson" <Se********@www.invalid> wrote in message news:1g******************************@40tude.net.. .
On Thu, 04 Nov 2004 00:50:44 GMT, George Hester wrote:
So yes alt="Hi" is supposed to present "something" to the
user when the browser is Java challenged I just never seen it work too well.


I OTOH, have witnessed it working perfectly.

All indications from your posts are that you have
a) never used a browser other than IE, and..
b) do not have the first clue about how to get applets into
a web-page for a wide variety of users.

Please stop confusing the OP.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane


Andrew I am going to take your nasty remarks as par for the course of this newsgroup. You belong here.

Thanks.

George Hester
__________________________________
Jul 23 '05 #12
On Thu, 04 Nov 2004 05:02:17 GMT, George Hester wrote:
Andrew I am going to take your nasty remarks as par for the course of this newsgroup.
If it slows the rate at which you deliver bogus
information about Java, that is a good thing.
..You belong here.
Thanks!
Thanks.


You're welcome, ..anytime. ;-)

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wladimir Borsov | last post by:
On one of my web pages there is an java applets which works fine on my computer. However I noticed on some other computer that the run of java applets are disabled. I got an error message...
7
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of...
5
by: David Baker | last post by:
Hi all I am very new to ASP.Net. I am trying to create a sniffer for our program. We want our users to click our sniffer and hopefully the sniffer will check their computer against our...
2
by: Sergey Poberezovskiy | last post by:
Hi, Simple question: I developed an ASP.Net application that runs under IE. Now for all other browsers I display a message that the application runs under IE: If Not...
12
by: ShepardBerry | last post by:
This may be a dumb question, but I'm not finding anything specifically what I'm looking for. Still kind of new to .NET as well. What I'm trying to do that I know I could do in VB6.0/ASP is to...
1
by: Dave Harrington | last post by:
Greetings all - We have a client who uses Lotus Notes as their default e-mail. The version of Lotus they use can run internet explorer windows within Lotus. I'd like to find if they are...
1
by: Boris | last post by:
Is there a way to develop a client-side web control based on the .NET framework and running in a browser (embedded in a web page)? As far as I understand ASP.NET web controls are all server-side? ...
2
by: MPA | last post by:
Hi, I am a newbee. All our applications so far were traditional client-server database applications. We are considering now writing our main application with Visual Studio .NET. Basically we...
1
by: Rodney | last post by:
I want to notify browser of every time my server side event fires w/o creating some sort of timer on client. Basically, can server notify client w/o client initiating contact? Again, thx for any...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.