MenuMatic problem with submenu

a place to get help

Moderator: 1.2 Moderators

Forum rules
  • Every time you need help create a new thread (but please use the search function before, as your problem maybe has already been solved)
  • use code highlighting (help)
  • After your problem has been solved you have to rename the subject to "[solved] <Topicname>" AND set the Topic icon as solved (the green check)

MenuMatic problem with submenu

Postby tyosmart on Wed Feb 24, 2010 4:13 pm

Hello all, I am a new member of this forum and I have a problem on MenuMatic. Actually I really love the MenuMatic from Jason, but I hate it because if I add a div before the submenu, the submenu will not appear as usual. Is there anything you can help me to overcome this problem? Let's look at a problem that I found below.

Below is the standard menus and submenus that do not have a problem.
  1.  
  2. <!-- BEGIN Menu -->
  3. <ul id="nav">
  4.     <li><a href="#">Level 1</a>
  5.         <ul>
  6.             <li><a href="#">Level 2</a></li>
  7.             <li><a href="#">Level 2</a></li>
  8.             <li><a href="#">Level 2</a></li>
  9.         </ul>
  10.     </li>
  11. </ul>
  12. <!-- END Menu -->
  13.  


And below this is a problem that I found when I added a little div before the submenu and the submenu can not arise.
  1.  
  2. <!-- BEGIN Menu -->
  3. <ul id="nav">
  4.     <li><a href="#" >Level 1</a>
  5.         <div class="style1">
  6.             <div class="style2">
  7.                 <div class="style3">
  8.                     <ul>
  9.                         <li><a href="#">Level 2</a></li>
  10.                         <li><a href="#">Level 2</a></li>
  11.                         <li><a href="#">Level 2</a></li>
  12.                     </ul>
  13.                 </div>
  14.             </div>
  15.         </div>
  16.     </li>
  17. </ul>
  18. <!-- END Menu -->
  19.  


Thank you all and hope someone can help me ;)
tyosmart
 
Posts: 6
Joined: Wed Feb 24, 2010 3:27 pm

Re: MenuMatic problem with submenu

Postby phal0r on Sun Feb 28, 2010 4:02 am

Here's the problem:

item.store('childMenu',item.getNext('ul') || item.getNext('ol'));

This is form the source code and indicates that a submenu is only added if it's on the same level like the link, so your first examples works, but the second doesn't. So, you have to extend or edit the source code.
phal0r
mootools connoisseurs
 
Posts: 33
Joined: Thu Nov 20, 2008 5:10 pm

Re: MenuMatic problem with submenu

Postby tyosmart on Tue Mar 02, 2010 11:13 pm

Can you give a little editing on the script so that the script is work with what I want? Because I do not know much about Mootools so I do not really know :(
tyosmart
 
Posts: 6
Joined: Wed Feb 24, 2010 3:27 pm

Re: MenuMatic problem with submenu

Postby dovereem on Wed Mar 03, 2010 12:08 pm

This is supposed to be a 'Help' forum. Which means people will help you understand what is going wrong.

This is not a 'please write my code for me' forum. So please try to implement what phal0r told you. And if you fail, feel free to post your non-working code so you can be assisted in correcting your problem.

This way you will learn.
dovereem
 
Posts: 10
Joined: Wed Feb 24, 2010 11:28 am

Re: MenuMatic problem with submenu

Postby wowenkho on Wed Mar 03, 2010 1:31 pm

well, you could've placed this post in the "Script Request" if that's the case. and if ever, you could ask monetary compensation for scripts asked this way :p that is, if the person asking would be alright with it. hahaha. but ultimately yeah, we'd be glad to help in as much as we can, but not just in the manner that we'd just spew out code like it's as free as the air we breathe :p
my sword is yours...
http://wowenkho.com

for those who want to talk with me quicker, add me on Yahoo! Messenger through my ID: michaelapeles
User avatar
wowenkho
mootools freak
 
Posts: 1146
Joined: Sat Aug 15, 2009 10:38 am
Location: Antipolo City, Philippines

Re: MenuMatic problem with submenu

Postby tyosmart on Sun Mar 07, 2010 10:55 pm

I've tried in ways that I can, but the script still does not work like I hoped, might be from someone you want to help a little so I can learn it well ;)
tyosmart
 
Posts: 6
Joined: Wed Feb 24, 2010 3:27 pm

Re: MenuMatic problem with submenu

Postby wowenkho on Mon Mar 08, 2010 4:20 am

we could help you more if you actually pasted your problem code here for us to check.
my sword is yours...
http://wowenkho.com

for those who want to talk with me quicker, add me on Yahoo! Messenger through my ID: michaelapeles
User avatar
wowenkho
mootools freak
 
Posts: 1146
Joined: Sat Aug 15, 2009 10:38 am
Location: Antipolo City, Philippines


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest