Detecting if the client browser disabled/allows java applets ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wladimir Borsov

    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 "Classnotfo und"
    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

  • Andrew Thompson

    #2
    Re: Detecting if the client browser disabled/allows java applets ?

    On Mon, 1 Nov 2004 20:30:55 +0100, Wladimir Borsov wrote:

    This is not a Java question.
    [color=blue]
    > On one of my web pages[/color]

    URL?
    [color=blue]
    >..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 "Classnotfo und"[/color]

    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 'ClassNotFoundE xception's
    <http://www.physci.org/codes/javafaq.jsp#exa ct>
    <http://www.physci.org/codes/javafaq.jsp#app letie>
    d) this reports '1.1.4'
    <http://www.physci.org/pc/property.jsp?pr op=java.version >
    [color=blue]
    > Is there a way to detect (with cgi resp. javascript) if java applets are allowed?[/color]

    You can detect if Java is enabled using JAvascript,
    but that is not the problem here.
    [color=blue]
    > I would like to show a simple picture instead of the applet pane if applets are not allowed.[/color]

    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

    Comment

    • Andrew Thompson

      #3
      Re: Detecting if the client browser disabled/allows java applets ?

      On Tue, 02 Nov 2004 05:01:07 GMT, Andrew Thompson wrote:
      [color=blue]
      > This is not a Java question.[/color]

      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

      Comment

      • Toby Inkster

        #4
        Re: Detecting if the client browser disabled/allows java applets ?

        Wladimir Borsov wrote:
        [color=blue]
        > 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.[/color]

        <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

        Comment

        • Andrew Thompson

          #5
          Re: Detecting if the client browser disabled/allows java applets ?

          On Tue, 02 Nov 2004 07:42:27 +0000, Toby Inkster wrote:
          [color=blue]
          > <applet ...>[/color]
          ....[color=blue]
          > <p>The message here will only be shown when Java is disabled or not
          > supported.</p>
          > </applet>[/color]

          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

          Comment

          • Harlan Messinger

            #6
            Re: Detecting if the client browser disabled/allows java applets ?


            "Wladimir Borsov" <wladimirb@gmx. net> wrote in message
            news:cm62tf$a8k $04$1@news.t-online.com...[color=blue]
            > On one of my web pages there is an java applets which works fine on my[/color]
            computer.[color=blue]
            > However I noticed on some other computer that the run of java applets are[/color]
            disabled.[color=blue]
            > I got an error message "Classnotfo und"
            > Is there a way to detect (with cgi resp. javascript) if java applets are[/color]
            allowed?[color=blue]
            > I would like to show a simple picture instead of the applet pane if[/color]
            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>

            Comment

            • Boris

              #7
              Re: Detecting if the client browser disabled/allows java applets ?

              Wladimir Borsov wrote:[color=blue]
              > 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 "Classnotfo und"
              > 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.[/color]

              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 "Classnotfo und" 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


              Comment

              • George Hester

                #8
                Re: Detecting if the client browser disabled/allows java applets ?

                <applet ...alt="">
                <param ...>
                <param ...><img src="file.gif">
                </applet>

                The Classnotfound error message is a different issue.

                --
                George Hester
                _______________ _______________ ____
                "Wladimir Borsov" <wladimirb@gmx. net> wrote in message news:cm62tf$a8k $04$1@news.t-online.com...[color=blue]
                > 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 "Classnotfo und"
                > 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
                >[/color]

                Comment

                • Andrew Thompson

                  #9
                  Re: Detecting if the client browser disabled/allows java applets ?

                  On Wed, 03 Nov 2004 12:48:48 GMT, George Hester wrote:
                  [color=blue]
                  > <applet ...alt="">[/color]

                  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

                  Comment

                  • George Hester

                    #10
                    Re: Detecting if the client browser disabled/allows java applets ?

                    "Andrew Thompson" <SeeMySites@www .invalid> wrote in message news:jpdia3hnlg n2.1vqml542gphq r.dlg@40tude.ne t...[color=blue]
                    > On Wed, 03 Nov 2004 12:48:48 GMT, George Hester wrote:
                    > [color=green]
                    > > <applet ...alt="">[/color]
                    >
                    > 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[/color]

                    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
                    _______________ _______________ ____

                    Comment

                    • Andrew Thompson

                      #11
                      Re: Detecting if the client browser disabled/allows java applets ?

                      On Thu, 04 Nov 2004 00:50:44 GMT, George Hester wrote:
                      [color=blue]
                      > 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.[/color]

                      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

                      Comment

                      • George Hester

                        #12
                        Re: Detecting if the client browser disabled/allows java applets ?

                        "Andrew Thompson" <SeeMySites@www .invalid> wrote in message news:1gu9i18s5b ey6$.170caj9t8i wlv.dlg@40tude. net...[color=blue]
                        > On Thu, 04 Nov 2004 00:50:44 GMT, George Hester wrote:
                        > [color=green]
                        > > 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.[/color]
                        >
                        > 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[/color]

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

                        Thanks.

                        George Hester
                        _______________ _______________ ____

                        Comment

                        • Andrew Thompson

                          #13
                          Re: Detecting if the client browser disabled/allows java applets ?

                          On Thu, 04 Nov 2004 05:02:17 GMT, George Hester wrote:
                          [color=blue]
                          > Andrew I am going to take your nasty remarks as par for the course of this newsgroup.[/color]

                          If it slows the rate at which you deliver bogus
                          information about Java, that is a good thing.
                          [color=blue]
                          >..You belong here.[/color]

                          Thanks!
                          [color=blue]
                          > Thanks.[/color]

                          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

                          Comment

                          Working...