|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
DropDownMenuDisplayer always closes menusI'm trying to use the DropDownMenuDisplayer to display my menu. It displays and works OK, calling the appropriate actions when I click on items.
The problem is that most of my pages have the same menus, but whenever I navigate to a new page it collapses the menus previously opened. I would like it to retain the state - is this possible? Ideally it would retain the entire state of all open menus items, but I would happy if it could just retain open the single menu from which the item was clicked. Any suggestions or ideas? |
|
|
Re: DropDownMenuDisplayer always closes menusThe ListDisplayer does this by using a Cookie - you might want to look
at the JavaScript for that menu to see how it's done. http://demo.raibledesigns.com/struts-menu/dhtmlExpandable.jsp Expand a menu and then refresh the page to see it in action. Matt On 3/6/06, neilNN <neil.nabble@...> wrote: > > I'm trying to use the DropDownMenuDisplayer to display my menu. It displays > and works OK, calling the appropriate actions when I click on items. > > The problem is that most of my pages have the same menus, but whenever I > navigate to a new page it collapses the menus previously opened. I would > like it to retain the state - is this possible? > > Ideally it would retain the entire state of all open menus items, but I > would happy if it could just retain open the single menu from which the item > was clicked. > > Any suggestions or ideas? > -- > View this message in context: http://www.nabble.com/DropDownMenuDisplayer-always-closes-menus-t1234606.html#a3266004 > Sent from the struts-menu-user forum at Nabble.com. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > struts-menu-user mailing list > struts-menu-user@... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ struts-menu-user mailing list struts-menu-user@... https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
|
|
Re: DropDownMenuDisplayer always closes menusThanks for the pointer - all I had to do was include the cookie script in may pages, and everything now behaves as I want:
<script type="text/javascript" src="scripts/cookies.js" /> Neil. |
|
|
Re: DropDownMenuDisplayer always closes menusHi Matt,
I have tried the demo on this link http://demo.raibledesigns.com/struts-menu/dhtmlExpandable.jsp, when I expanded one of the menu and refresh the page the menu collapsed. Any idea on how to solve this? Thanks.
Regards,
meiyong |
| Free embeddable forum powered by Nabble | Forum Help |