473,387 Members | 1,596 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,387 software developers and data experts.

"Object Required" error in IE6

16
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:
Expand|Select|Wrap|Line Numbers
  1. <div id="menycontainer">
  2. <div id="opacitet">
  3. <ul>
  4. <li><a class="meny" href="index.php">
  5. <div class="roundtop">
  6. <div class="r1"></div><div class="r2"></div><div class="r3"></div>
  7. <div class="r4"></div></div><span class="menycontent">Hem</span></a>
  8. </li>
  9. <li><a class="meny" href="#" onmouseover="MM_showHideLayers('undermeny1','','show')" onmouseout="MM_showHideLayers('undermeny1','','hide')">
  10. <div class="roundtop"><div class="r1"></div><div class="r2"></div>
  11. <div class="r3"></div><div class="r4"></div></div>
  12. <span class="menycontent">Övrigt</span></a>
  13. </li>
  14. </ul>
  15. </div>
  16. <div id="undermeny1" class="undermeny" onmouseover="MM_showHideLayers('undermeny1','','show')" onmouseout="MM_showHideLayers('undermeny1','','hide')">
  17. <a href="../ovrigt.php?typ=fritids">Fritids &raquo;&raquo;</a><br />
  18. <a href="../ovrigt.php?typ=disco">Disco &raquo;&raquo;</a><br />
  19. <a href="../ovrigt.php?typ=skoldatatek">Skoldatatek &raquo;&raquo;</a><br />
  20. </div></div>
There is no problem with FF.
Sep 25 '07 #1
6 2112
ak1dnar
1,584 Expert 1GB
Moved from Php forum to the Javascripts forum. though, the errors is from php file its a js issue.
Sep 25 '07 #2
acoder
16,027 Expert Mod 8TB
Changed the thread title to better describe the problem.

What line does the error occur on?
Sep 25 '07 #3
Anette
16
What line does the error occur on?
The whole menu code is:
Expand|Select|Wrap|Line Numbers
  1. <ul>
  2.             <li><a class="meny" href="index.php" >
  3.                             <div class="roundtop">
  4.                                 <div class="r1"></div>
  5.                                 <div class="r2"></div>
  6.                                 <div class="r3"></div>
  7.                                 <div class="r4"></div>
  8.                             </div>
  9.                             <span class="menycontent">Hem</span>
  10.                             </a>
  11.                         </li><li><a class="meny" href="#" onmouseover="MM_showHideLayers('undermeny2','','show')" onmouseout="MM_showHideLayers('undermeny2','','hide')" >
  12.                             <div class="roundtop">
  13.                                 <div class="r1"></div>
  14.                                 <div class="r2"></div>
  15.                                 <div class="r3"></div>
  16.                                 <div class="r4"></div>
  17.                             </div>
  18.                             <span class="menycontent">Om OFF</span>
  19.                             </a>
  20.                         </li><li><a class="meny" href="kalendarium.php" >
  21.                             <div class="roundtop">
  22.                                 <div class="r1"></div>
  23.                                 <div class="r2"></div>
  24.                                 <div class="r3"></div>
  25.                                 <div class="r4"></div>
  26.                             </div>
  27.                             <span class="menycontent">Kalendarium</span>
  28.                             </a>
  29.                         </li><li><a class="meny" href="#" onmouseover="MM_showHideLayers('undermeny3','','show')" onmouseout="MM_showHideLayers('undermeny3','','hide')" >
  30.                             <div class="roundtop">
  31.                                 <div class="r1"></div>
  32.                                 <div class="r2"></div>
  33.                                 <div class="r3"></div>
  34.                                 <div class="r4"></div>
  35.                             </div>
  36.                             <span class="menycontent">Samverkan</span>
  37.                             </a>
  38.                         </li><li><a class="meny" href="OFFtidning.php" >
  39.                             <div class="roundtop">
  40.                                 <div class="r1"></div>
  41.                                 <div class="r2"></div>
  42.                                 <div class="r3"></div>
  43.                                 <div class="r4"></div>
  44.                             </div>
  45.                             <span class="menycontent">OFF-tidning</span>
  46.                             </a>
  47.                         </li><li><a class="meny" href="kontaktaOss.php" >
  48.                             <div class="roundtop">
  49.                                 <div class="r1"></div>
  50.                                 <div class="r2"></div>
  51.                                 <div class="r3"></div>
  52.                                 <div class="r4"></div>
  53.                             </div>
  54.                             <span class="menycontent">Kontakta oss</span>
  55.                             </a>
  56.                         </li><li><a class="meny" href="#" onmouseover="MM_showHideLayers('undermeny1','','show')" onmouseout="MM_showHideLayers('undermeny1','','hide')" id="current">
  57.                             <div class="roundtop">
  58.                                 <div class="r1"></div>
  59.                                 <div class="r2"></div>
  60.                                 <div class="r3"></div>
  61.                                 <div class="r4"></div>
  62.                             </div>
  63.                             <span class="menycontent">Övrigt</span>
  64.                             </a>
  65.                         </li>            </ul>
It's always on line 28 that the problem occurs. The menu is generated with PHP.
Sep 25 '07 #4
acoder
16,027 Expert Mod 8TB
Which line is line 28? Check the source when viewing in your browser.
Sep 26 '07 #5
Anette
16
Hi,
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.
Sep 26 '07 #6
acoder
16,027 Expert Mod 8TB
Glad to hear you got it working. Post again anytime if you have any more questions.
Sep 26 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dave Hammond | last post by:
I've got what should be a simple assignment of either an element value or a default string to a variable, but when the element doesn't exist I get an "Object required" error rather than an...
7
by: deko | last post by:
I'm getting intermittent "Object Invalid or No Longer Set" errors in my Access 2002 mdb. What causes these errors? Has anyone dealt with this before? I can't trace it because it's not easy...
6
by: Lauchlan M | last post by:
Hi. Usin ASP.NET, getting an "Object reference not set to an instance of an object" error. In my login.aspx page I have: string arrUserRoles = new string {"UserRole"};...
1
by: Kamal | last post by:
I am trying to send mail through smtp. smtp service is running on my machine. But every time during the smtpmail.send(msg) call gives "Could not access 'CDO.Message' object." error. Could some...
1
by: Lauchlan M | last post by:
Hi. I'm using ASP.NET, getting an "Object reference not set to an instance of an object" error. In my login.aspx page I have: string arrUserRoles = new string {"UserRole"};...
2
by: chuckdfoster | last post by:
I am getting a "Could Not Access CDO.Message Object" Error when I try to use the following code to send an email via ASP.NET. When I run this on one machine it works, on another one it doesn't. ...
7
by: dhnriverside | last post by:
Hi peeps I'm just following this HOW-TO from MSDN.. http://support.microsoft.com/default.aspx?scid=kb;en-us;306355 But I've got a problem. I've adding the #using System.Diagnostics; line to...
2
by: louie.hutzel | last post by:
This JUST started happening, I don't remember changing any code: When I click the submit button on my form, stuff is supposed to happen (which it does correctly) and a result message is posted back...
0
by: piyumi80 | last post by:
hi, i wrote the following code to get a specific data row from the data set.but it generates the "Object reference not set to an instance of an object.".....error private void...
10
by: andersond | last post by:
On a webpage that has a variety of questions I get an "object required" error on lines like this... document.getElementById('tableQuestion17').style.visibility="visible"; This is the code...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.