"Object Required" error in IE6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anette
    New Member
    • Aug 2007
    • 16

    "Object Required" error in IE6

    Hi,
    When I load pages through the db, e.g.: ovrigt.php?typ= disco and after that go to the menu I get an error message from IE6: "Object required" (translated from swedish IE). Part of menu:
    [CODE=html]<div id="menycontain er">
    <div id="opacitet">
    <ul>
    <li><a class="meny" href="index.php ">
    <div class="roundtop ">
    <div class="r1"></div><div class="r2"></div><div class="r3"></div>
    <div class="r4"></div></div><span class="menycont ent">Hem</span></a>
    </li>
    <li><a class="meny" href="#" onmouseover="MM _showHideLayers ('undermeny1',' ','show')" onmouseout="MM_ showHideLayers( 'undermeny1','' ,'hide')">
    <div class="roundtop "><div class="r1"></div><div class="r2"></div>
    <div class="r3"></div><div class="r4"></div></div>
    <span class="menycont ent">Övrigt</span></a>
    </li>
    </ul>
    </div>
    <div id="undermeny1 " class="undermen y" onmouseover="MM _showHideLayers ('undermeny1',' ','show')" onmouseout="MM_ showHideLayers( 'undermeny1','' ,'hide')">
    <a href="../ovrigt.php?typ= fritids">Fritid s &raquo;&raqu o;</a><br />
    <a href="../ovrigt.php?typ= disco">Disco &raquo;&raqu o;</a><br />
    <a href="../ovrigt.php?typ= skoldatatek">Sk oldatatek &raquo;&raqu o;</a><br />
    </div></div>[/CODE]

    There is no problem with FF.
    Last edited by acoder; Sep 26 '07, 09:17 AM. Reason: Added language to code tags
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Moved from Php forum to the Javascripts forum. though, the errors is from php file its a js issue.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Changed the thread title to better describe the problem.

      What line does the error occur on?

      Comment

      • Anette
        New Member
        • Aug 2007
        • 16

        #4
        Originally posted by acoder
        What line does the error occur on?
        The whole menu code is:
        [CODE=html]<ul>
        <li><a class="meny" href="index.php " >
        <div class="roundtop ">
        <div class="r1"></div>
        <div class="r2"></div>
        <div class="r3"></div>
        <div class="r4"></div>
        </div>
        <span class="menycont ent">Hem</span>
        </a>
        </li><li><a class="meny" href="#" onmouseover="MM _showHideLayers ('undermeny2',' ','show')" onmouseout="MM_ showHideLayers( 'undermeny2','' ,'hide')" >
        <div class="roundtop ">
        <div class="r1"></div>
        <div class="r2"></div>
        <div class="r3"></div>
        <div class="r4"></div>
        </div>
        <span class="menycont ent">Om OFF</span>
        </a>
        </li><li><a class="meny" href="kalendari um.php" >
        <div class="roundtop ">
        <div class="r1"></div>
        <div class="r2"></div>
        <div class="r3"></div>
        <div class="r4"></div>
        </div>
        <span class="menycont ent">Kalendariu m</span>
        </a>
        </li><li><a class="meny" href="#" onmouseover="MM _showHideLayers ('undermeny3',' ','show')" onmouseout="MM_ showHideLayers( 'undermeny3','' ,'hide')" >
        <div class="roundtop ">
        <div class="r1"></div>
        <div class="r2"></div>
        <div class="r3"></div>
        <div class="r4"></div>
        </div>
        <span class="menycont ent">Samverkan </span>
        </a>
        </li><li><a class="meny" href="OFFtidnin g.php" >
        <div class="roundtop ">
        <div class="r1"></div>
        <div class="r2"></div>
        <div class="r3"></div>
        <div class="r4"></div>
        </div>
        <span class="menycont ent">OFF-tidning</span>
        </a>
        </li><li><a class="meny" href="kontaktaO ss.php" >
        <div class="roundtop ">
        <div class="r1"></div>
        <div class="r2"></div>
        <div class="r3"></div>
        <div class="r4"></div>
        </div>
        <span class="menycont ent">Kontakta oss</span>
        </a>
        </li><li><a class="meny" href="#" onmouseover="MM _showHideLayers ('undermeny1',' ','show')" onmouseout="MM_ showHideLayers( 'undermeny1','' ,'hide')" id="current">
        <div class="roundtop ">
        <div class="r1"></div>
        <div class="r2"></div>
        <div class="r3"></div>
        <div class="r4"></div>
        </div>
        <span class="menycont ent">Övrigt</span>
        </a>
        </li> </ul>[/CODE]

        It's always on line 28 that the problem occurs. The menu is generated with PHP.
        Last edited by acoder; Sep 26 '07, 09:16 AM. Reason: Added language to code tags

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Which line is line 28? Check the source when viewing in your browser.

          Comment

          • Anette
            New Member
            • Aug 2007
            • 16

            #6
            Hi,
            Originally posted by acoder
            Which line is line 28? Check the source when viewing in your browser.
            I meant linenumber 28 on this page. But doesn't matter now. After a lot of time I found the solution. The code was refering to a div which name had been changed.

            Thanks anyway.

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              Glad to hear you got it working. Post again anytime if you have any more questions.

              Comment

              Working...