keep alive menu propertie

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
rppr
Beginner
Beginner
Posts: 2
Joined: Fri Nov 21, 2003 1:14 pm

keep alive menu propertie

Post by rppr »

Hi!
I´m working with version 5 RC26 and I'm curious about some "missing" behaviour!
Setting the keepalive to true in all menus, and according to the definition, all works well, but, what if I don't want to choose from any of the menu items?!How can I force a close to all menus?!

Something like
closeAllMenusOnBodyClickWithoutChoosingAnyMenuItems()... 8O

Thanks!

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

Post by John »

Unless I'm missing something in what you're asking, if you don't want a menu to stay open just leave the keepalive parameter out of the definition - or should I just go back to bed :?:
John
rppr
Beginner
Beginner
Posts: 2
Joined: Fri Nov 21, 2003 1:14 pm

Post by rppr »

Back to bed?Help me first, please! ;)

Sorry about my explanation!

What I'm asking is: Can the menu have the Windows Start Menu behaviour?!
Keepalive it's a usefull property, but all the menu's hierarchy won't close unless I choose some item or navigate to another menu!!
I know that's the definition, but what I want to do is travel outside the area of the menu, keeping the open hierarchy intact, and return to it if want or click outside the menu area in a way that the menu structure would return to its original state! :|

Looking forward to hearing from you.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

rppr wrote:...I know that's the definition,..
Actually, the definitions vary. As a menu item property, keepalive is defined as follows:
Keeps the menu open until another menu has been opened.
But as a menu property, keepalive is defined as follows:
keepalive, tells a menu to remain open once it has been activated. The only way to close the menu is to select a menu item, another menu or click elsewhere on the page.
It seems that the "or click elsewhere on the page" part is what you're after. I thought, "well maybe he's using it as a menu item property but should try it as a menu proprety instead." But, when I tried it, it didn't work as described... the "kept alive" menu remains open even if you click elsewhere on the page. Don't know if that should be considered a bug or what. I can't easily imagine a workaround that would handle clicks anywhere else on the page, without potentially interfering with other behavior intended for clicking on other non-menu objects elsewhere on the page. There may be one, but nothin comes to mind right now (sorry).

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

Post by John »

This was posted by Kevin in the other thread you started...
Hi rppr,

I just read the original and posted to it (although it's not necessarily good news )

I think Bob's comment was meant just to point out that it's best to confine comments or questions on a topic to a single thread, for the benefit of anyone else who may be following that thread (and who might miss pertinent comments if posted in a different thread). It's OK to occasionally "bump" an existing topic if you feel that it may have been overlooked or if you wish to bring it back to the fore, but it can cause confusion if you post a separate thread.

Kevin
He is correct, as was Bob. If your topic is not being responded to just post a short note in that topic (I still need help, etc.), which will move it to the top of the list.
John
Post Reply