471,086 Members | 894 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

Menus Vs Ajax Conundrum

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.


Mar 25 '08 #1
1 1240

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


"Just Me" <news.microsoft.comwrote in message
news:Oz****************@TK2MSFTNGP06.phx.gbl...
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.


Mar 26 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Marci | last post: by
4 posts views Thread by Jim Ford | last post: by
4 posts views Thread by Jim Owen | last post: by
2 posts views Thread by subnunciation | last post: by
1 post views Thread by David Shorthouse | last post: by
1 post views Thread by Steve JORDI | last post: by
6 posts views Thread by JJ | last post: by
1 post views Thread by support | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.