OK, Heres the deal.
VS2005, AJAX 1.1, Menu With Child Items Inside UpdatePanel.
Why, because Im using ajax and need to dynamically update the enabled state
of one of the menu options.
Problem, if I cause an async request anywhere on the page then quickly hover
over the memu item with child items underneath it, they display while the
request is going on, if I move the mouse cursor off the menu before the
async request finishes and the menu items time out, then it leaves a white
div on screen.
OK, so where do we go from here,
1.) Remove the menues from the update panel, but how can I update the menu
item in question to disable it ?
2.) Find some way of disabling menu items client side while the page is
waiting for a server response.
3.) Do something else even cleverer ?????
Any ideas on how to solve this would be good.
Microsoft Newsserver - 26 Mar 2008 17:16 GMT
OK, ive found a solution to this.
The menus are actually composed of tables, and the have Menu_Hover and
Menu_Unhover available which displays the children of the static menu
items.. As I was using Ajax I had to use the pageLoad event, but added the
following code, which references just one of the menu items with child
items. I found the reference by looking at the source code rendered by
asp.net. The beauty of this solution is it works for any of the menu items
even though Ive referenced a specific one, they all collapse, which solves
the problem. The white div still appears but gets closed automatically on
page load.
Just thought someone might like to know how to get around it.
var printMenu = $get('mnuCommandsn2');
Menu_Unhover(printMenu);
> OK, Heres the deal.
>
[quoted text clipped - 20 lines]
>
> Any ideas on how to solve this would be good.