473,405 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Drop down menu and dropdownlist control problem

In our web application(ASP.Net), we have database driven menus that are
of dropdown style on getting focus (a requirement). We've used
Javascript Menu Object for creating these menus. On different pages of
the application, we are using ASP.Net some DropDownLists. Now the
problem is that when any menu drops, these dropdownlists disappear as
long as the menu is dropped and reappear when the menu is folded back.
We are unable to find any reason and any solution for this. Can
somebody help us out of this?

Thanks in advance.

Nov 19 '05 #1
2 2242
Ha:
Hopefully you'll be glad to know this is really a common problem. First
off, i want you to understand that this is a "feature". Let me explain why.

a select is a windowed control and doesn't participate in the normal
z-indexing. So, without this "fix" when your menus drop, if they dropped
over a select, the select would appear on top of it. here's a simple
example you can look at:
<html><body>
<div style="background:#aaa;border:1px solid #000;"
onMouseOver="this.style.position = 'absolute';this.style.height =
'300px';">Mouse Over Me</div>
<select></select>
</body>
</html>

In IE (in firefox it'll run fine), the select will "bleed" or be seen
through the div, no matter what z-index you do or anything.

To get around this, many menu controls use some simple javascript. Whenever
a menu drops, get all the <SELECT>'s on the page and make them invisible
(whihc you can do in like 3 lines of code). It's a pretty brute force
method, but for a while it was the only way. So now you know :)

Recently a new method has come to light to solve the problem, involvnig
iframes. you can read up more on it here:
http://dotnetjunkies.com/WebLog/jkin...07/21/488.aspx

The menues in ASP.Net 2.0 will use this feature (it's still a hack, but
atleast it gets the job done).

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
<ha*******@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
In our web application(ASP.Net), we have database driven menus that are
of dropdown style on getting focus (a requirement). We've used
Javascript Menu Object for creating these menus. On different pages of
the application, we are using ASP.Net some DropDownLists. Now the
problem is that when any menu drops, these dropdownlists disappear as
long as the menu is dropped and reappear when the menu is folded back.
We are unable to find any reason and any solution for this. Can
somebody help us out of this?

Thanks in advance.

Nov 19 '05 #2
Thankyou so much for you reply and clearing me the problem. Now I can
understand the problem but the issue is that it doesn't look good in a
professional web application. Also, I have seen some websites developed
in ASP.Net and having dropdown menu but the drop down lists neither
disappear nor go behind the menu. Anyways I'll check if this iFrame
solution works in my application or not.
Thanks once again

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Miguel Dias Moura | last post by:
Hello, I have a Drop Down List with 3 options. I want to redirect to a new page when an options is selected. I don't want to use a button. The redirection should be fired when the option is...
3
by: Stephen Adam | last post by:
Hi there, I'm sure i'm missing something really simple here, all i want to do is get the value of the selected item in a list box. Even after much fiddling about last night I still could not get...
5
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1);...
4
by: QT | last post by:
Dear Sirs, I used a drop down menu with collectin of my required items. There is no problem to sellect a items from drop down menu. But when I try to write someting insede drop down without...
17
by: Aussie Rules | last post by:
Hi, I want to have a single line combo box dropdown, but where i can selected multiple items in the drop down via a check box... I can see one in the standard tool box... is there one ? If...
2
by: clickon | last post by:
I am using ASP.net 2.0 and trying to take advantage of the updated data editing facilities provided through the SQLDataSource control and the DetailsView control. The data is a record from a...
2
by: newsgroups.jd | last post by:
Thanks for any advice, help in advance... I have 3 dropdownlist that populate based on choice in the previous (nested essentially) Problem is when I hit the back button and make a change in...
8
by: Ed Dror | last post by:
Hi there ASP.NET 2.0 VB & SQL Express Lest take Northwind Categories Products as example I create a table that hold these two together and I create a stored procedure like select ProductID,...
0
by: john_mcmahon | last post by:
I'm having issues populating a second drop down menu that's dependent upon a selection in the first menu. When I select an option from the first menu, the second menu remains disabled, i.e. unable...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.