Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 12th, 2005, 02:40 AM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying drop down menus on the top of Combo box

I need some help regarding how to display the drop down menu on the top of the combo boxes. Because, by default, the combo box is on the top of the menu.

Drop down menu dropping up to some extent in my web page. Up to that position, I want all the combo boxes to be set at the back of that menu or even hide them (upto the space occupying by the menu).

Please help me how to do dynamically for every page instead of implementing anything for that particular page's combo box components.

 
Old December 13th, 2005, 05:46 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I don't know how your drop down menu is implemented, if it is also a list box then you can set the z-index to be higher than the one you want below.

If it is made up of standard HTML elements such as div and span. then you need to manipulate the style.visibility of the listbox before and after you show the menu.

--

Joe (Microsoft MVP - XML)
 
Old December 14th, 2005, 06:27 AM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The drop down menu I am using is a DHTML drop down menu. The z-index is not working for the above mentioned problem. I am generating the menu items dynamically in which the names are coming from the database. Now, by default the code is having some z-index of 100 in the JS file. But, nothing is working to display the menu over the combo box.

So, now is there the iframe that I can use to solve the same problem?
Please help me.

 
Old December 14th, 2005, 01:46 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Read my original post again, I said if the menu is not another listbox then z-index will not work.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
add drop down / combo box for selection mamuco Classic ASP Components 0 May 30th, 2007 06:34 PM
Combo Box Won't Drop Down sjf905 C# 0 January 13th, 2007 12:09 AM
Clear the top of combo box akibaMaila VB.NET 2002/2003 Basics 2 July 14th, 2005 04:33 PM
Combo box items not displaying djam C# 3 March 22nd, 2005 04:13 AM
Drop Down/Combo box/List in a Form from DB mazimi Classic ASP Basics 2 October 1st, 2004 10:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.