Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Menus Vs Ajax Conundrum

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Just Me - 25 Mar 2008 22:29 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.