Help - Search - Members - Calendar
Full Version: Collapsible menu js error
xFX JumpStart Public Forums > DHTML Menu Builder > Generic Problems > JavaScript Errors
seaghan
Hi,

I tried the collapsible menu on a vertical menu I was working on. When I click on the menu, I get a JS error "Invalid Argument".

Even in the internal preview, it says error on line 881 (Menu.style.width = parseInt(dmbtbF[Menu.ptb].width) - 2*(parseInt(Menu.style.left) - parseInt(dmbtbF[Menu.ptb].left)) + 2*tbBorder[Menu.ptb]wink.gif

Has anyone seen this before?

PS
Code optimisation is OFF
'Attempt to remove image-based code' is unticked

TIA
JohnM
I could be wrong but I think the collapsible menu only works on a horizontal toolbar!
JohnM
seaghan
THanks John,

I just figured it out. My "Menus Offset" contained negative number(s) and was crashing the javascript.

I'm using a vertical menu (items from top to bottom), and they expand when submenu is shown - ie gets taller.

Thanks in any case for replying - I'm always getting vert / horiz; stalagmites / stalagtites etc. mixed up wink.gif
JohnM
Oh Dear, Made a boo-boo. I realised at 3.30 am when I woke in the night that I had got my verticles and horizontals the wrong way round. Must have had a "Senior Moment" (I get lots of them)
Regards
JohnM  ???
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.