To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-14-2006, 06:11 AM   #1
bogu
I code 4 beer ...
 
bogu's Avatar
 
Join Date: Nov 2002
Location: Romania
Posts: 1,743
JAVASCRIPT: Layer vs. listbox problem ...

Hi there; simple question ... I have a layer that, when extended, appears under the dropdown listbox.

Is there any suggestion on how to make it appear overtop?

And does anyone know of a tutorial or something like yahoo mail or gmail have for the address book, when you start enter the email address to witch u want to send an email a layer appear with the all email addresses from your address book that contains what u entered into that field?

Thanks, any help is real appreciated …
__________________
/**
* The answer is so obvious, duh!
* It's like, whatever ...
*
* If your problem has been solved, PLEASE click the RESOLVED LINK under "Thread Tools"
*/
bogu is offline   Reply With Quote
Old 04-14-2006, 12:35 PM   #2
JPnyc
Administrator
 
Join Date: Jan 2005
Posts: 963
You do this with the CSS z-index property. The element in question must be absolutely positioned for this property to have effect in IE.
__________________
PHP builder Online Community Manager

JPnyc is online now   Reply With Quote
Old 04-14-2006, 01:05 PM   #3
MarkR
Senior Member
 
Join Date: Jul 2004
Location: Oxford, England
Posts: 1,983
By "A layer", do you mean an absolutely positioned element?

In some browsers, native widgets are used, which stops elements going over them - this includes <select> elements in some versions of MSIE.

There is no fix. Consider using radio buttons instead, which I think are not natively rendered in recent version of MSIE, hence respect z-index properly.

I think that all HTML elements are rendered in Mozilla and IE7 + , but not IE6 and below. Not sure about other browsers.

Mark
MarkR is offline   Reply With Quote
Old 04-20-2006, 06:49 AM   #4
bogu
I code 4 beer ...
 
bogu's Avatar
 
Join Date: Nov 2002
Location: Romania
Posts: 1,743
Quote:
Originally Posted by MarkR
By "A layer", do you mean an absolutely positioned element?
Yes.

Is sad for this IE bug; because of this lots of people are refusing to use layers (absolutely positioned elements) and u cand do lots of nice things...

The best solution if to make the layer not appear near a list box...

I know that is a work around for this bug by hide the elements if it appears under a layer but I dont know how I can determine wich elements are under my layer and witch are not.
__________________
/**
* The answer is so obvious, duh!
* It's like, whatever ...
*
* If your problem has been solved, PLEASE click the RESOLVED LINK under "Thread Tools"
*/
bogu is offline   Reply With Quote
Old 04-20-2006, 01:55 PM   #5
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
Can't you put a containing div element around the area where your layer will show up. Then when your new layer shows up, just put:
document.getElementById('containingDiv').style.visibility='hidden';
and wham! it's hidden the elements under the div!!
bpat1434 is offline   Reply With Quote
Old 04-21-2006, 03:42 AM   #6
bogu
I code 4 beer ...
 
bogu's Avatar
 
Join Date: Nov 2002
Location: Romania
Posts: 1,743
Quote:
Originally Posted by bpat1434
Can't you put a containing div element around the area where your layer will show up.
The layer will be random size, so I want the layer script to be independent and should not depend where I show it on the page...
__________________
/**
* The answer is so obvious, duh!
* It's like, whatever ...
*
* If your problem has been solved, PLEASE click the RESOLVED LINK under "Thread Tools"
*/
bogu is offline   Reply With Quote
Old 04-21-2006, 08:28 AM   #7
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
The layer size won't matter.... as long as the layer is around the elements you want to hide, the size won't matter.
bpat1434 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 06:57 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.