Loading ...
Sorry, an error occurred while loading the content.

TabView - "Object Required" Error in IE

Expand Messages
  • christoph.juergens
    Hi, In IE6 i get an Object Required error with the code below in the line marked with an X. Code works fine with FF, Opera, Safari etc. Any ideas anyone?
    Message 1 of 5 , Dec 1, 2008
    • 0 Attachment
      Hi,

      In IE6 i get an "Object Required" error with the code below in the
      line marked with an X. Code works fine with FF, Opera, Safari etc.

      Any ideas anyone?

      <code>
      <!-- Yahoo tabview: -->
      <script type=3D"text/javascript"
      src=3D"[path]/yahoo.js"></script>=20=20
      <script type=3D"text/javascript"
      src=3D"[path]/dom.js"></script>=20=20
      <script type=3D"text/javascript"
      src=3D"[path]/event.js"></script>=20=20=20
      <script type=3D"text/javascript" src=3D"[path]/element-
      beta.js"></script>=20=20
      <script type=3D"text/javascript"
      src=3D"[path]/tabview.js"></script>=20=20
      <script type=3D"text/javascript">
      X var tabView =3D new YAHOO.widget.TabView('sidebar-tabs');
      </script>
      </code>
    • Eric Miraglia
      Christoph, Can you point us to the page where you re seeing this error? -Eric
      Message 2 of 5 , Dec 1, 2008
      • 0 Attachment
        Christoph,

        Can you point us to the page where you're seeing this error?

        -Eric


        On Dec 1, 2008, at 3:19 AM, christoph.juergens wrote:

        Hi,

        In IE6 i get an "Object Required" error with the code below in the 
        line marked with an X. Code works fine with FF, Opera, Safari etc.

        Any ideas anyone?

        <code>
        <!-- Yahoo tabview: -->
        <script type=3D"text/ javascript" 
        src=3D"[path] /yahoo.js" ></script> =20=20
        <script type=3D"text/ javascript" 
        src=3D"[path] /dom.js"> </script> =20=20
        <script type=3D"text/ javascript" 
        src=3D"[path] /event.js" ></script> =20=20=20
        <script type=3D"text/ javascript" src=3D"[path] /element-
        beta.js"></script> =20=20
        <script type=3D"text/ javascript" 
        src=3D"[path] /tabview. js"></script> =20=20
        <script type=3D"text/ javascript" >
        X var tabView =3D new YAHOO.widget. TabView(' sidebar-tabs' );
        </script>
        </code>


      • christoph.juergens
        Hmm, third time I try to post this: visit http://neu.cjuergens.de the sidebar will show some tabs - sometimes... regards, Christoph
        Message 3 of 5 , Dec 11, 2008
        • 0 Attachment
          Hmm, third time I try to post this:

          visit http://neu.cjuergens.de
          the sidebar will show some tabs - sometimes...

          regards,

          Christoph


          --- In ydn-javascript@yahoogroups.com, Eric Miraglia <miraglia@...>
          wrote:
          >
          > Christoph,
          >
          > Can you point us to the page where you're seeing this error?
          >
          > -Eric
          >
          >
          > On Dec 1, 2008, at 3:19 AM, christoph.juergens wrote:
          >
          > > Hi,
          > >
          > > In IE6 i get an "Object Required" error with the code below in the
          > > line marked with an X. Code works fine with FF, Opera, Safari etc.
          > >
          > > Any ideas anyone?
          > >
          > > <code>
          > > <!-- Yahoo tabview: -->
          > > <script type=3D"text/javascript"
          > > src=3D"[path]/yahoo.js"></script>=20=20
          > > <script type=3D"text/javascript"
          > > src=3D"[path]/dom.js"></script>=20=20
          > > <script type=3D"text/javascript"
          > > src=3D"[path]/event.js"></script>=20=20=20
          > > <script type=3D"text/javascript" src=3D"[path]/element-
          > > beta.js"></script>=20=20
          > > <script type=3D"text/javascript"
          > > src=3D"[path]/tabview.js"></script>=20=20
          > > <script type=3D"text/javascript">
          > > X var tabView =3D new YAHOO.widget.TabView('sidebar-tabs');
          > > </script>
          > > </code>
          > >
          > >
          > >
          >
        • matt.sweeney
          Hi Christoph, Sorry I missed your previous posts. I took a look at the site and as I was pulling extraneous includes I noticed that removing the swfobject.js
          Message 4 of 5 , Dec 13, 2008
          • 0 Attachment
            Hi Christoph,

            Sorry I missed your previous posts.

            I took a look at the site and as I was pulling extraneous includes I
            noticed that removing the swfobject.js fixes the issue.

            There seems to be a conflict with swfobject.js and the 2.6.0 version
            of YUI Event. Reverting to the 2.5.2 version of event.js runs
            without error. We'll look into that on our end.

            - Matt


            --- In ydn-javascript@yahoogroups.com, "christoph.juergens"
            <christoph.juergens@...> wrote:
            >
            > Hmm, third time I try to post this:
            >
            > visit http://neu.cjuergens.de
            > the sidebar will show some tabs - sometimes...
            >
            > regards,
            >
            > Christoph
            >
            >
            > --- In ydn-javascript@yahoogroups.com, Eric Miraglia <miraglia@>
            > wrote:
            > >
            > > Christoph,
            > >
            > > Can you point us to the page where you're seeing this error?
            > >
            > > -Eric
            > >
            > >
            > > On Dec 1, 2008, at 3:19 AM, christoph.juergens wrote:
            > >
            > > > Hi,
            > > >
            > > > In IE6 i get an "Object Required" error with the code below in
            the
            > > > line marked with an X. Code works fine with FF, Opera, Safari
            etc.
            > > >
            > > > Any ideas anyone?
            > > >
            > > > <code>
            > > > <!-- Yahoo tabview: -->
            > > > <script type=3D"text/javascript"
            > > > src=3D"[path]/yahoo.js"></script>=20=20
            > > > <script type=3D"text/javascript"
            > > > src=3D"[path]/dom.js"></script>=20=20
            > > > <script type=3D"text/javascript"
            > > > src=3D"[path]/event.js"></script>=20=20=20
            > > > <script type=3D"text/javascript" src=3D"[path]/element-
            > > > beta.js"></script>=20=20
            > > > <script type=3D"text/javascript"
            > > > src=3D"[path]/tabview.js"></script>=20=20
            > > > <script type=3D"text/javascript">
            > > > X var tabView =3D new YAHOO.widget.TabView('sidebar-tabs');
            > > > </script>
            > > > </code>
            > > >
            > > >
            > > >
            > >
            >
          • Matt Sweeney
            Hi, It turns out this an issue with the IE Conditional Compilation feature. The swfobject.js has some conditional compilation code, and that combined with us
            Message 5 of 5 , Dec 15, 2008
            • 0 Attachment
              Hi,

              It turns out this an issue with the IE Conditional Compilation feature.
              The swfobject.js has some conditional compilation code, and that
              combined with us having some "//@" references in subsequent source code
              comments in YUI Event triggers the error. Adding a space between the
              "//" and the "@" resolves the issue.

              The files in use are not really a factor, they just happen to trigger
              this issue. This can be reproduced without any YUI or swfobject code.
              The simplest repro I've come up with is:

              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
              "http://www.w3.org/TR/html4/strict.dtd">
              <html>
              <head>
              <title>Conditional Compilation Error</title>
              <script>
              /*@cc_on
              ie = true;
              @if (@_win32)
              windows = true;
              @end
              @*/

              //@TODO foo
              </script>
              </head>


              <body>

              </body>
              </html>

              We'll be sure to add the space between the comment and "@" for the next
              release.

              - Matt

              matt.sweeney wrote:
              > Hi Christoph,
              >
              > Sorry I missed your previous posts.
              >
              > I took a look at the site and as I was pulling extraneous includes I
              > noticed that removing the swfobject.js fixes the issue.
              >
              > There seems to be a conflict with swfobject.js and the 2.6.0 version
              > of YUI Event. Reverting to the 2.5.2 version of event.js runs
              > without error. We'll look into that on our end.
              >
              > - Matt
              >
              >
              > --- In ydn-javascript@yahoogroups.com, "christoph.juergens"
              > <christoph.juergens@...> wrote:
              >
              >> Hmm, third time I try to post this:
              >>
              >> visit http://neu.cjuergens.de
              >> the sidebar will show some tabs - sometimes...
              >>
              >> regards,
              >>
              >> Christoph
              >>
              >>
              >> --- In ydn-javascript@yahoogroups.com, Eric Miraglia <miraglia@>
              >> wrote:
              >>
              >>> Christoph,
              >>>
              >>> Can you point us to the page where you're seeing this error?
              >>>
              >>> -Eric
              >>>
              >>>
              >>> On Dec 1, 2008, at 3:19 AM, christoph.juergens wrote:
              >>>
              >>>
              >>>> Hi,
              >>>>
              >>>> In IE6 i get an "Object Required" error with the code below in
              >>>>
              > the
              >
              >>>> line marked with an X. Code works fine with FF, Opera, Safari
              >>>>
              > etc.
              >
              >>>> Any ideas anyone?
              >>>>
              >>>> <code>
              >>>> <!-- Yahoo tabview: -->
              >>>> <script type=3D"text/javascript"
              >>>> src=3D"[path]/yahoo.js"></script>=20=20
              >>>> <script type=3D"text/javascript"
              >>>> src=3D"[path]/dom.js"></script>=20=20
              >>>> <script type=3D"text/javascript"
              >>>> src=3D"[path]/event.js"></script>=20=20=20
              >>>> <script type=3D"text/javascript" src=3D"[path]/element-
              >>>> beta.js"></script>=20=20
              >>>> <script type=3D"text/javascript"
              >>>> src=3D"[path]/tabview.js"></script>=20=20
              >>>> <script type=3D"text/javascript">
              >>>> X var tabView =3D new YAHOO.widget.TabView('sidebar-tabs');
              >>>> </script>
              >>>> </code>
              >>>>
              >>>>
              >>>>
              >>>>
              >
              >
              >
            Your message has been successfully submitted and would be delivered to recipients shortly.