Object detection for <OBJECT> element

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Thompson

    #16
    Re: Object detection for &lt;OBJECT&g t; element

    On Fri, 20 Aug 2004 16:37:49 GMT, Michael Winter wrote:[color=blue]
    > On Fri, 20 Aug 2004 16:01:18 GMT, Andrew Thompson <SeeMySites@www .invalid>[color=green]
    >> On Fri, 20 Aug 2004 10:37:47 -0500, kaeli wrote:
    >>[color=darkred]
    >>> I see the applet in my IE6. Once.[/color]
    >>
    >> The page is a bit quirky ..[/color][/color]
    ...[color=blue]
    > Quirky?[/color]
    <snip - crash, null pointer, permission denied>

    Well, maybe Xuirky is a better term,
    quirky with that Xtreme aspect, or
    ...maybe not. ;-)

    ...[color=blue]
    > On the actual topic: I don't think so.[/color]

    Richard seems to have suggested some clever
    possibilities I want to look more closely at.
    I also want to read what Randy says more
    closely as well.

    I am nowhere near tossing in the towel on
    this one. I'm only just getting into the
    swing of it.
    [color=blue]
    > By the way, EMBED has never been a standard element. The first OBJECT-like
    > element was APPLET, introduced in HTML 3.2, followed by OBJECT sometime in
    > HTML 4 (forgive me for not looking up exactly when). EMBED is just made up
    > Microsoft rubbish.[/color]

    ...Ironically, I got the impression EMBED was
    an imaginary tag of *Netscape*, rather than IE.

    Yeah, I realise it is a bit of a shock to recognize
    that 'IE has it right' on this one. Well, almost
    right, given it should ignore the APPLET element
    nested inside the OBJECT.
    [color=blue]
    > Sorry I couldn't help more,[/color]

    Thank you for your time and thoughts. :-)
    [ ..and, sorry I crashed your browser! ]

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology

    Comment

    • Andrew Thompson

      #17
      Re: Object detection for &lt;OBJECT&g t; element

      On Fri, 20 Aug 2004 17:40:10 +0100, Richard Cornford wrote:
      ....[color=blue]
      > For example, ..[/color]

      Thanks for the pointers Richard.

      I will have a close look at what you are
      describing after I get some sleep, then
      I'll see what I can put together.

      --
      Andrew Thompson
      http://www.PhySci.org/ Open-source software suite
      http://www.PhySci.org/codes/ Web & IT Help
      http://www.1point1C.org/ Science & Technology

      Comment

      • Andrew Thompson

        #18
        Re: Object detection for &lt;OBJECT&g t; element

        On Fri, 20 Aug 2004 12:33:07 -0400, Randy Webb wrote:
        [color=blue]
        > About the only way to test for support of the OBJECT tag would be to try
        > to load some data file in it, read it and see what your results are.[/color]

        That sounds promising, but I might investigate
        Richard's suggestion at the outset.

        Thanks Randy.

        --
        Andrew Thompson
        http://www.PhySci.org/ Open-source software suite
        http://www.PhySci.org/codes/ Web & IT Help
        http://www.1point1C.org/ Science & Technology

        Comment

        • kaeli

          #19
          Re: Object detection for &lt;OBJECT&g t; element

          In article <1ecqarh5igv91. n8hs6cziykm5$.d lg@40tude.net>,
          SeeMySites@www. invalid enlightened us with...[color=blue]
          >
          > Yeah.. IE conditional statements seemed a promising
          > avenue. I had a look at them, but simply could
          > not come up with a combination that worked to
          > hide one applet call from IE, while allowing
          > Netscape/Mozilla & Opera to see both..
          >
          > Do you have any specific inspirations in that regard?
          > I will look at the IE conditional statements again
          > if I can get a new angle to attack it..
          >
          >[/color]

          Try this. Applet only for IE, both for everything else. Not tested. Well,
          tested with text only and it worked.

          <![if ! IE]>
          <OBJECT classid='clsid: 8AD9C840-044E-11D1-B3E9-00805F499D93'
          codebase='http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-
          i586.cab#Versio n=1,4,0'
          width=80 height=30>
          <param name="type" value="applicat ion/x-java-applet;jpi-version=1.4.0">
          <param name='code' value='LabelApp let.class'>
          <param name='message' value='OBJECT'>
          <applet alt='Java Disabled! (applet)'
          code='LabelAppl et.class'
          width=80 height=30>
          <param name='message' value='APPLET'>
          </applet>
          </OBJECT>
          <![endif]>
          <!--[if IE]>
          <applet alt='Java Disabled! (applet)'
          code='LabelAppl et.class'
          width=80 height=30>
          <param name='message' value='APPLET'>
          </applet>
          <![endif]-->

          --
          --
          ~kaeli~
          You can't have everything. Where would you put it?



          Comment

          • Michael Winter

            #20
            Re: Object detection for &lt;OBJECT&g t; element

            On Fri, 20 Aug 2004 17:14:05 GMT, Andrew Thompson <SeeMySites@www .invalid>
            wrote:

            [snip]
            [color=blue]
            > Richard seems to have suggested some clever
            > possibilities I want to look more closely at.
            > I also want to read what Randy says more
            > closely as well.[/color]

            I considered enumerating the elements and disabling the appropriate one,
            but someone once asked in a Java group how to communicate with an applet
            with JavaScript. The problem he was having was with actually obtaining a
            reference. I seem to remember having trouble with the applets collection,
            so I ignored it here. I must say that I don't remember what mark-up that
            poster used; it may have had no relevance here.

            [snip]
            [color=blue]
            > ..Ironically, I got the impression EMBED was
            > an imaginary tag of *Netscape*, rather than IE.
            >
            > Yeah, I realise it is a bit of a shock to recognize
            > that 'IE has it right' on this one. Well, almost
            > right, given it should ignore the APPLET element
            > nested inside the OBJECT.[/color]

            It seems you could be right. I've only seen the element described in
            Microsoft documents, hence my assumption, but searching through archived
            information on DevEdge does show Netscape using it, too.

            Netscape apparently implemented it in NN2, whilst Microsoft did in IE3.
            I'd assume that NN2 was released first, making it Netscape's element, but
            I know nothing of browser chronology, especially that far back.

            I hate bashing Microsoft when, in the end, it's not their fault. They
            deserve it most of the time though. :D
            [color=blue]
            > Thank you for your time and thoughts. :-)
            > [ ..and, sorry I crashed your browser! ][/color]

            You crashed *Internet Explorer*, not my browser. :)

            I'm an Opera user!

            Mike

            --
            Michael Winter
            Replace ".invalid" with ".uk" to reply by e-mail.

            Comment

            • kaeli

              #21
              Re: Object detection for &lt;OBJECT&g t; element

              In article <asmdnRDL0Oflur vcRVn-tg@comcast.com> , HikksNotAtHome@ aol.com
              enlightened us with...[color=blue]
              >
              > <mytag id="myID">Text </mytag>
              > <button onclick="
              > if (document.getEl ementById &&
              > document.getEle mentById('myID' )){alert('Yes') }">Test</button>
              >
              > IE6 gives the alert, even though it doesn't understand the "mytag".
              >[/color]

              Wow, very informative. And totally not what I expected. Obviously.

              Thanks Randy.

              --
              --
              ~kaeli~
              All I ask is the chance to prove that money cannot make me
              happy.



              Comment

              • Andrew Thompson

                #22
                Re: Object detection for &lt;OBJECT&g t; element

                On Fri, 20 Aug 2004 18:02:51 GMT, Michael Winter wrote:

                I might have made intelligent and erudite replies
                to several of the response to this thread, or posted
                progress, ..if I had not been awoken to an invitation
                to go drinking ..which I accepted!

                In that case..
                [color=blue]
                > On Fri, 20 Aug 2004 17:14:05 GMT, Andrew Thompson wrote:[/color]
                .....[color=blue]
                > I hate bashing Microsoft when, in the end, it's not their fault. They
                > deserve it most of the time though. :D[/color]

                I am always at least slightly surprised to discover it
                is *Microsoft* that follows the standard..

                It's pretty rare though.
                [color=blue][color=green]
                >> Thank you for your time and thoughts. :-)
                >> [ ..and, sorry I crashed your browser! ][/color]
                >
                > You crashed *Internet Explorer*, not my browser. :)
                >
                > I'm an Opera user![/color]

                (Oops!) I don't know what's worse now.. crashing
                your 'OS Component', ..or accusing you of using
                it as a 'browser' (where was my head at?). ;-)

                --
                Andrew Thompson
                http://www.PhySci.org/ Open-source software suite
                http://www.PhySci.org/codes/ Web & IT Help
                http://www.1point1C.org/ Science & Technology

                Comment

                • Andrew Thompson

                  #23
                  Re: Object detection for &lt;OBJECT&g t; element

                  On Fri, 20 Aug 2004 12:47:14 -0500, kaeli wrote:
                  [color=blue]
                  > Try this. Applet only for IE, both for everything else. Not tested. Well,
                  > tested with text only and it worked.
                  >
                  > <![if ! IE]>[/color]

                  I still want to investigate the other approaches mentioned,
                  but I decided to test IE conditional statements first..

                  My best attempt is here..
                  <http://www.physci.org/test/appletcall/index5.html>
                  ...it does not validate due to the conditional
                  statements, but it comes very close to doing what
                  I want in a (hopefully) reliable manner.

                  The other attempts, index3, closely based on your example,
                  and index4.. I rejected both of these for reasons further
                  expounded in the pages, you can see them linked from here...
                  <http://www.physci.org/test/appletcall/>

                  I stumbled around MSDN looking for information
                  on which versions of IE support <OBJECT> elements
                  and conditional statements respectively, without
                  much luck..

                  Anybody have further info. on that, I'd appreciate
                  hearing it. I am also after more test results on
                  the page listed above.

                  --
                  Andrew Thompson
                  http://www.PhySci.org/ Open-source software suite
                  http://www.PhySci.org/codes/ Web & IT Help
                  http://www.1point1C.org/ Science & Technology

                  Comment

                  • Andrew Thompson

                    #24
                    Re: Object detection for &lt;OBJECT&g t; element

                    On Fri, 20 Aug 2004 12:57:26 GMT, Andrew Thompson wrote:
                    [color=blue]
                    > This is intended to fix a long standing
                    > (cough)Java(cou gh) problem with which I'm
                    > sure some of you will be familiar.
                    >
                    > Sun recommends using the <OBJECT>/<EMBED>
                    > elements to cater for Java applets, but then
                    > uses *browser* *sniffing* Javascript to select
                    > between them.
                    >
                    > I was hoping to find/create a script that
                    > will use feature detection to write the
                    > appropriate tag,[/color]

                    Just to update. I think I now have two
                    satisfactory solutions.

                    The first was arrived at very early in the
                    thread by kaeli, bringing me back to look
                    at IE conditional statements.

                    The second was developed with the help of
                    Richard Cornford amd Randy Webb, in the
                    process of detecting the applets that were
                    duplicated in IE, and removing one.

                    Initially I was having problems with this,
                    but I have now realised that anything in the
                    <APPLET> element will ultimately be loaded by
                    my specialist AppletLoader.

                    I can use the LoaderApplet *itself* to check
                    for the applet defined through the <OBJECT>
                    tag, then invoke the JS commands necessary
                    to remove itself, should the other applet
                    be loaded.

                    This will take further work on the
                    LoaderApplet before I can fully test it.
                    Once I have that page up, I'll post a link
                    on the thread.

                    Thanks to all who responded.

                    --
                    Andrew Thompson
                    http://www.PhySci.org/ Open-source software suite
                    http://www.PhySci.org/codes/ Web & IT Help
                    http://www.1point1C.org/ Science & Technology

                    Comment

                    Working...