RC26

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
henrik@itide.dk
Super Advanced
Super Advanced
Posts: 51
Joined: Thu Feb 27, 2003 9:47 am
Location: Denmark

RC26

Post by henrik@itide.dk »

I get following error at the page http://www.recommended.com/?Id=4:

Microsoft JScript runtime error: Object required

in mmenudom.js and the function
function gpos

h=_gm.offsetHeight

Is there a parameter I need to set ?

Henrik
henrik@itide.dk
Super Advanced
Super Advanced
Posts: 51
Joined: Thu Feb 27, 2003 9:47 am
Location: Denmark

Post by henrik@itide.dk »

After some more test I think this error is caused by my own code. It comes and goes :oops:

Sorry that :D

Henrik
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

No problem. Just glad you found it.
John
henrik@itide.dk
Super Advanced
Super Advanced
Posts: 51
Joined: Thu Feb 27, 2003 9:47 am
Location: Denmark

Wrong again

Post by henrik@itide.dk »

Hi John

I have found the error. If you download the example

http://www.milonic.co.uk/menusample.php?sampleid=9

you will see the error in WIN IE6.

The problem came after I solved the problem with the submenu position in MAC IE. If you can remember it I solved it by drawing the submenus before the mainmenu. If I remove the extra drawMenus the problem is solved in IE6 but then I have the problem with submenu position in MAC IE :?

I will try to solve it somehow :idea: . The site is online Monday !

Henrik
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Hello Henrik -

Took some time off, so I don't have a Windoze box now to look at it (just stuck with that at work!). Hopefully one of the other folks can grab a look before Monday.

Are your folks staying with Mac/IE? As I'm sure you know it's been announced as a dead product there. I guess some folks will hang on, but it's not going anywhere.
John
henrik@itide.dk
Super Advanced
Super Advanced
Posts: 51
Joined: Thu Feb 27, 2003 9:47 am
Location: Denmark

Post by henrik@itide.dk »

Hi John

I have just made a "hack". I have found out that the problem came at the first call of drawMenus. I inserted a dummy main menu together with the submenus and that solved it :?

-------------
with(recommended=new menuname("main")){
style=style3;
alwaysvisible=1;
orientation="horizontal";
position="relative";
itemheight=0;
aI("text=;");
}

-----------
Also look at the site

http://www.recommended.com/?Id=4

Not the best solution but as long my boss is happy :D

Thanks for your quick reponse once again

Henrik
Post Reply