Menus Vs Ajax Conundrum

J

Just Me

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.
 
M

Microsoft Newsserver

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top