» Forums
» DynarchMenu forum
» Support
» Placement Problem (DynarchMenu 2.8)
Placement Problem (DynarchMenu 2.8)
2006/01/09 20:53
Viewed 3006 times
Replies: 1/1

Hello,

I am using the DynarchMenu on a series of DIV blocks stacked on top of each other. It seems that when I specify a menuHandler function (body), the placement of the menu is wrong. The DIVs at the top continue to work but the ones at the bottom (near the bottom of the page) place the menu way down the page (page actually grows 2x). The code is as follows:

function menuHandler(el) {
var isGen = el.id.indexOf('generic') == 0;
var isDetail = el.id.indexOf('detail') == 0;

var menu = this.menu;

menu.items["band_up"].display(isGen);
menu.items["band_down"].display(isGen);
menu.items["gensep"].display(isGen);

menu.items["addgroup"].display(isDetail);
menu.items["newband"].display(isDetail);
menu.items["addpeer"].display(isDetail);
menu.items["detailsep"].display(isDetail);

var band = getObject(el.id.replace(/_hd$/, ''));
menu.items["displayband"].setLabel(band.hidden ? 'Show Band' : 'Hide Band');
}

If i remove the code from the function (function menuHandler(el) {}), the menu works fine.

Thanks,
-Edwin S. Ramirez-

Re: Placement Problem (DynarchMenu 2.8)
2006/01/10 14:59
Viewed 4229 times
Replies: 0/0

Hi,

I don't quite understand the problem.. an example would be greatly appreciated—can you provide us with an URL where the problem is visible?

Best regards,
-Mihai

last
Google