Welcome Guest Search | Active Topics | Sign In | Register

Menu - JavaScript For Each - turn all items off Options
Sungard.com
Posted: Thursday, June 28, 2007 11:46:47 AM
Rank: Newbie
Groups: Member

Joined: 6/28/2007
Posts: 5
Using Client Side Javascript

I am using dynamic menus turning items on and off by passing flags.

Is there a way to turn all menu items off at one time, Or can use some type of for each statement in JavaScript to turn off all menu items and then turn on only the ones I want?

Thans in Advance.

Larry



eo_support
Posted: Thursday, June 28, 2007 11:51:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Larry,

Unfortuntely no. You will have to use a for loop to loop through each menu item and turn them off individually.

Thanks
Sungard.com
Posted: Thursday, June 28, 2007 12:14:42 PM
Rank: Newbie
Groups: Member

Joined: 6/28/2007
Posts: 5
Is there a way to get the Count of menu items?

I can call .getTopGroup(); to get the top menu group item.

Then If there is a way to get a count of sub items then I could do a for loop on menuTopGroup.length or something like that.

Thanks Larry

eo_support
Posted: Thursday, June 28, 2007 12:22:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.