JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DOCTYPE causing problems

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
AE
Guest





PostPosted: Thu Aug 14, 2003 10:30 am    Post subject: DOCTYPE causing problems Reply with quote

Hi there,

I'm having some problems with Mozilla/Firebird incorrectly rendering sub menus when I use a DOCTYPE definition (of any type, HTML, XHTML, etc.). If I remove it, the menu works but the page won't then validate and it messes up other things in the page in other browsers.

Is there a fix for this in the works, or a workaround?

Thanks

Dave
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Mon Aug 25, 2003 2:16 am    Post subject: Reply with quote

Please, quote your DOCTYPE literally. Or just sand sample page to jssupport@cooldev.com.
Back to top
AE
Guest





PostPosted: Tue Aug 26, 2003 12:36 pm    Post subject: Reply with quote

The doctype was:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


However, others did the same, such as HTML transitional, etc.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Tue Aug 26, 2003 1:45 pm    Post subject: Reply with quote

Bug. Blin...
To work this thing around put menu initialization <SCRIPT> tag into relatively positioned <DIV>:
[code]<div style="position: relative;">
<script type="text/javascript">
var m1 = new COOLjsMenuPRO("menu1", MENU_ITEMS)
m1.initTop();
m1.init();
m1.show();
</script>
</div>[/div]
Then in menuitems.js try to adjust "leveloff" fields. This does work for me.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1