Help - Search - Members - Calendar
Full Version: Bottom right align causes crash in 3.6 RC3
xFX JumpStart Public Forums > DHTML Menu Builder > Generic Problems > JavaScript Errors
rramsay
I have a horizontal toolbar, with all the menus bottom right aligned in 3.6 RC3. When I preview them (or show them for real) The first one gives me the error

Invalid argument

in this part of the index.html code for the toolbar:

function ShowMenu(mName, x, y, isCascading, hsImgName, algn) {






ClearTimer(smHnd);smHnd = 0;
if(isCascading) {
lsc = OpenMenus[nOM].SelCommand;
smHnd = window.setTimeout("if(nOM)if(lsc==OpenMenus[nOM].SelCommand)ShowMenu2('" + mName + "',0,0,true,''," + algn + ")", SubMenusDelay);
} else
ShowMenu2(mName, x, y, false, hsImgName, algn);
}

The next menu gives the error

tbHS[...].0 is null or not an object

on line 462

case 7:
tbleft = wh[0]/2-tbWidth[t]/2;
tbtop  = wh[1]-tbHeight[t];
tbBackleft = tbStyle[t]==0?(tbSpanning[t]==0?tbleft:0):(wh[0]/2-parseInt(dmbtbB[t].width)/2);
tbBacktop = tbStyle[t]==0?wh[1]-parseInt(dmbtbB[t].height):0;
break;

I'm including the menu file. Only the first two menus have the bad align. The rest work fine.
xfx
Can you please post your .dmb project?
rramsay
QUOTE
Can you please post your .dmb project?

I thought I did - the board must have eaten it... and on this reply, the uploading file buttons have disappeared

Just download it from http://www.simonwalsh.org/simonwalsh.dmb
xfx
You're right... there's a bug in the new 2.6' toolbar-related code.

Unzip the attached file and copy its contents on the folder where you installed DMB.

Then, recompile your project.
rramsay
As usual, Xavier - fantastic!

Works fine now!

Robert Ramsay
Fabulous songs at:
http://www.simonwalsh.org
http://www.evor.com/simon.html
http://www.artistlaunch.com/simonwalsh
http://www.besonic.com/simonwalsh
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.