close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Sub levels not showing in dynamic menu

Thread began 11/27/2012 5:10 am by Base5 Designs | Last modified 11/27/2012 7:01 am by Base5 Designs | 1630 views | 2 replies

Base5 Designs

Sub levels not showing in dynamic menu

Hi there

I have a table setp as follows (just showing the columns of intrest)

Sections_sec (just using dummy data for explanation)

id_sec parent_sec menuname_sec
1 0 page 1
2 0 page 2
3 0 page 3
4 1 subpage1_1
5 1 subpage1_2
6 2 subpage2_1
7 2 subpage2_2

basically i create pages in the parent sec is either 0 or an id of another entry in this table

I have added a filter to the top level recordset (parent_sec = 0) so the top level does not show any of the sublevels

the sublevel is filtered by parent_sec with the ID from the top level item.

when i view the menu on the site (its on a blank page so no other css is conflicting with it)
the sub menus dont appear when i hover.

I have checked in firebug and the other menu items are there (the extra <ul> <li> tags are in the code on the page) but hidden and their state isnt getting changed to visible when i mouse over the top level menus

the page can be viewed at: menutest.php

i have attached the files in a zip so you can have a look at it.

if i use a static menu copying the structure from the db it all works ok, so not sure what i am doing wrong with the dynamic menu.
this is the code generated by the menuwriter (using the data from my tables)

html:
<ul class="level-0" id="cssmw2">
<li class="parent">
<a href="about/">about</a>
<ul class="level-1">
<li><a href="team/">Team</a></li>
<li><a href="oppurtunities/">Oppurtunities</a></li>
<li><a href="contact/">Contact</a></li>
<li><a href="terms/">Terms</a></li>
</ul>
</li>
<li class="parent">
<a href="latest/">Latest</a>
<ul class="level-1"></ul>
</li>
<li class="parent">
<a href="links/">Links</a>
<ul class="level-1">
<li><a href="jam-tv/">Jam TV</a></li>
<li><a href="jam-artists/">Jam Artists</a></li>
<li><a href="jam-school/">Jam School</a></li>
<li><a href="jam-family/">Jam Family</a></li>
</ul>
</li>
<li class="parent">
<a href="support/">Support</a>
<ul class="level-1">
<li><a href="join/">Join</a></li>
<li><a href="donate/">Donate</a></li>
</ul>
</li>
</ul>

<script type="text/javascript">if(window.attachEvent) { window.attachEvent("onload", function() { cssmw2.intializeMenu('cssmw2',{select_current: 0, orientation: 1}); }); } else if(window.addEventListener) { window.addEventListener("load", function() { cssmw2.intializeMenu('cssmw2',{select_current: 0, orientation: 1}); }, true); }</script>
thanks for your time


Dizzy

Attached Files
menuwriter test.zip

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...