Help - Search - Members - Calendar
Full Version: Problems with collapsible menu on slow connection
xFX JumpStart Public Forums > DHTML Menu Builder > <developers' edition>
Andreas Augustine
Hi

I'm building a collapsible menu with the Collapsiblemenus-AddIn and the DynAPI (latest version developer edition).

When the menu is loaded over a slow internet connection (a very crowded LAN) it misbehaves and "autoexpand" when holding the mousepointer over a menuitem. Its meant to expand only when clicked on.
If I reload the page with the menu it almost always works as expected. After manually emptying the cache and reloading the page the misbehaviour often reappears.

I use setOnMouseOver and the default AddIn-setting ConvertAction=true. Its as it sometimes wont recognize the AddIn-setting when loaded over a crowded network.
It behaves like this in both IE6 and Firefox (1.0) and Safari (on Mac). I have tested on a few other computers (mostly Windows and IE6) and the misbehaviour appears there too every now and then.

Heard of this before? Any ideas of what to do? I dont send the projectfile and html-page as it would take some work to clean them from confidential data and....I only want to do that if strictly necessary. Getting short on time in this project...

I tried a workaround but it didnt end up well enough, I'll describe it if you find a way to make this work that is easier than the original way above:
I changed the AddIn-setting ConvertAction to false and replaced setOnMouseOver with setOnClick.
This works very well in Firefox and IE, but not in Safari. In Safari a click on a collapsible menuitem makes the group expand. BUT it also hides the menuitem clicked on.
Like this:

Original:
Item1
Item2

After click on Item2 (only happens in Safari):
Item1
Subitem1
Subitem2

Expected:
Item1
Item2
Subitem1
Subitem2

I really have to get this menu to work from computers with low internet bandwidth and all these browsers.
Any suggestions is appreciated!

BTW: I use a modified dynapi.dat file sent to me in another topic: "Known bug? dmbAPI_setOnClick and " in Safari 2.01 on Mac" on this forum.

Regards
Andreas Augustine
xfx
This is a known bug of the AddIn... and we're working to get it fixed as soon as possible.

For now I would recommend you using the attached version of the AddIn and see if you notice any (although minor) improvements.
Andreas Augustine
Hi!
Thx for the answer, good to know that its not just me having problems with this:-)

I tried the attached file, but when using it I get javascript errors (from Firefox):

Error: syntax error
Source File: http://frs100ws132/site/js/iemenu.js
Line: 1
Source Code:
??Expand Menus When Link Present??) cFrame.isLink=true;execURL2(escape(_purl(url)),tframe);}function BlinkItem(){var f=(mibm.id.substr(1)>1000?cFrame:mFrame);mibm.bs=!Math.abs(mibm.bs);SwapMC(mibm.bs,mibm,f);mibc--;if(mibc>=0) window.setTimeout("BlinkItem ...

And the sourcecode sure looks somewhat strange to me, checked the file you attached and there is a row:
if(!??Expand Menus When Link Present??) cFrame.isLink = true;

Maybe you forgot to replace or comment this line? :-) Or am I missing something?

Anyway...
As I mentioned in my first post I tried a workaround with onclick instead of onmouseover, and in Safari I had the problem with the menuitem clicked in disappearing when expanding. I just found the reason for this problem. I found that I used the dmbAPI_setSelectionEffects with the 5th parameter set to 'none', and that is of course not a valid value. When I changed it to null it works fine in IE,Firefox AND Safari :-)
I have to do some more tests but so far it seems like my solution to "dmbAPI_setOnMouseOver-driven collapsible menu on slow connection" is to use "dmbAPI_setOnClick with the project addIn setting ConvertActions=false". This far it works on all computers and browsers I tried here at my work.

So unless I find any computer/browser where it isn't working everything seems to be just fine:-)

Regards!
Andreas
xfx
I see...
Well, if you have the time I'd really appreciate it if you could update (again) your CollapsibleMenus AddIn with the one attached here. Notice that this time I'm including two files; installing the AddIn will automatically install both files and perform a full update of your AddIn.

Let me know if you have the time to test it and if you encounter any problem(s).

NOTE: The attached version if the same version of the AddIn that will be included in DMB 4.10.002
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.