Hi,
I came across this problem a couple of times now, and it's time to find help elsewhere, so i post the problem here.
Im been using several tools from the net and all appears to have the same problem, they won't hide a select combobox or listbox when they display over them, it could be a dropdown menu or a tooltip box.
To help you see the problem I made a simple page you can copy&paste from this thread to a new HTML file.
Im not sure where the problem is
1. by HTML definition (the standards)
2. Internet Explorer
3. Me
I hope soneone is able to help on this issue
Best Regards
Helge Damsholt.
*** copy lines from here to end of post ***
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Error with Select tags</title>
<script language="JavaScript1.2">
<!-- Script Begin
function Toggle(e) {
if (document.all["testit"].style.visibility == "visible"
{
document.all["testit"].style.visibility = "hidden";
e.value = "Click to Show layer";
}else{
document.all["testit"].style.visibility = "visible";
e.value = "Click to Hide layer";
}}
// Script End -->
</script>
</head>
<body>
<div id="testit" name="TestIT" style="position: absolute; top: 80; left: 20; visibility: hidden; z-index: 1000; height: 300px; width: 400px; background: #0066CC; font-family: sans-serif; font-size: medium; color: #FFFFFF">Is is not possible for me to get this layer on top of select tags<br>does anyone know about this problem ??<br>It's mayme IE ??</div>
<input type="button" name="ChangeLayer" onclick="Toggle(this);" value="Click to Show layer">
<br><br><br>
test Area<br>
<input type="text" size="50" value="This is only a input tag there will be hidden under the displayed layer"><br>
<input type="radio" size="50">This is only a input tag there will be hidden under the displayed layer<br>
<input type="checkbox" size="50">This is only a input tag there will be hidden under the displayed layer<br>
<input type="button" size="50" value="This is only a input tag there will be hidden under the displayed layer" ><br>
<br>This will underneat layer when it's displayed<br>
<select name="test">
<option>Its not possible to hide this under the displayed layer</option>
<option>To my knowledge, a select tag ignores z-index'es</option>
</select><br><br>
<select name="test" style="z-index:2" multiple size="4">
<option>Its not possible to hide this under the displayed layer even it is indexed</option>
<option>To my knowledge, a select tag ignores z-index'es</option>
</select>
</body>
</html>
I came across this problem a couple of times now, and it's time to find help elsewhere, so i post the problem here.
Im been using several tools from the net and all appears to have the same problem, they won't hide a select combobox or listbox when they display over them, it could be a dropdown menu or a tooltip box.
To help you see the problem I made a simple page you can copy&paste from this thread to a new HTML file.
Im not sure where the problem is
1. by HTML definition (the standards)
2. Internet Explorer
3. Me
I hope soneone is able to help on this issue
Best Regards
Helge Damsholt.
*** copy lines from here to end of post ***
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Error with Select tags</title>
<script language="JavaScript1.2">
<!-- Script Begin
function Toggle(e) {
if (document.all["testit"].style.visibility == "visible"
document.all["testit"].style.visibility = "hidden";
e.value = "Click to Show layer";
}else{
document.all["testit"].style.visibility = "visible";
e.value = "Click to Hide layer";
}}
// Script End -->
</script>
</head>
<body>
<div id="testit" name="TestIT" style="position: absolute; top: 80; left: 20; visibility: hidden; z-index: 1000; height: 300px; width: 400px; background: #0066CC; font-family: sans-serif; font-size: medium; color: #FFFFFF">Is is not possible for me to get this layer on top of select tags<br>does anyone know about this problem ??<br>It's mayme IE ??</div>
<input type="button" name="ChangeLayer" onclick="Toggle(this);" value="Click to Show layer">
<br><br><br>
test Area<br>
<input type="text" size="50" value="This is only a input tag there will be hidden under the displayed layer"><br>
<input type="radio" size="50">This is only a input tag there will be hidden under the displayed layer<br>
<input type="checkbox" size="50">This is only a input tag there will be hidden under the displayed layer<br>
<input type="button" size="50" value="This is only a input tag there will be hidden under the displayed layer" ><br>
<br>This will underneat layer when it's displayed<br>
<select name="test">
<option>Its not possible to hide this under the displayed layer</option>
<option>To my knowledge, a select tag ignores z-index'es</option>
</select><br><br>
<select name="test" style="z-index:2" multiple size="4">
<option>Its not possible to hide this under the displayed layer even it is indexed</option>
<option>To my knowledge, a select tag ignores z-index'es</option>
</select>
</body>
</html>