Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / September 2005

Tip: Looking for answers? Try searching our database.

Cascading menu,how to keep marked a navigation through the sub men

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raul Martin - 12 Sep 2005 10:33 GMT
Hi,

We have a cascading navigation menu, when we mouse over the items the they
are marked, if an item has a sub section a new sub menu (a child) is
displayed. The problem is that when we mouse over the items of the second
menu the items are marked but the item which launch the sub level (the
parent) lose the mark and we want to keep it marked to show the navigation
through the sub levels of the cascading menu.
The structure of the menu is stored in an xml file, renderized by an xslt
file and css classes to mark the menu titles, when a menu have sub menu we
call to a jscript fucntion to hide/show the sub menu.

Thanks and regards,
Raul.
Bruce Barker - 12 Sep 2005 17:07 GMT
you are probably using hover to control marking, you will need you client
scipt to mark the item when you open a sub-menu (and restore markup on
display)

-- bruce (sqlwork.com)

> Hi,
>
[quoted text clipped - 10 lines]
> Thanks and regards,
> Raul.
Raul Martin - 13 Sep 2005 08:31 GMT
Yes that's the way we are trying (on hover we use a css class to mark the
item and a script to mark a new item if a sub-menu is opened) but we are not
sure on how to restore/keep markup the 'parent' menu item; any idea would be
appreciated.

<xsl:choose>
<xsl:when test="child::SubMenuLevel2">
 <xsl:attribute
name="onMouseOver">this.className='CASMenuRowLevel1On';showObj();</xsl:attribute>
 <xsl:attribute
name="onMouseOut">this.className='CASMenuRowLevel1Off';hideObj()</xsl:attribute>
</xsl:when>
</xsl:choose>

function javascript to check show/hiide menu/sub-menu
{
obj.style.display = 'none';
           
if (document.all.ddlChannelListLayer)
{
 document.all['ddlChannelListLayer'].style.visibility = 'visible';
}

Thanks a lot, Raul.

> you are probably using hover to control marking, you will need you client
> scipt to mark the item when you open a sub-menu (and restore markup on
[quoted text clipped - 16 lines]
> > Thanks and regards,
> > Raul.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.