Hello
I have a webpage where the user can push a button to see a popup appear (the user then has to fill something in a textbox and press 'ok' or 'cancel'). This webpage is on a intranet, the only browser we are using is IE 6 (or IE 5.5).
At first I used a <div> to accomplish this (positioning the div in the middle of my page). This looked great until I noticed that the div would not show above a drop down box(<select>).
Apparently, there is no way I can set the z-index of the drop down box to set it behind my div (because a drop down box is a 'windowed' element).
I then used a popupbox:
This looked great! Positioned right above the dropdown list and all... until I noticed that, whenever I click on something outside the popup, the popup closes automaticly.
So, my questions are:
* Is there by any chance a possible way of positioning a div above a drop down box (all the other related questions said that it wasn't possible to do but I'm just asking)
* Is there a way I can prevent the popup to close automaticly when something is clicked.
Thanks in advance for the help
Greetz
VBMim
I have a webpage where the user can push a button to see a popup appear (the user then has to fill something in a textbox and press 'ok' or 'cancel'). This webpage is on a intranet, the only browser we are using is IE 6 (or IE 5.5).
At first I used a <div> to accomplish this (positioning the div in the middle of my page). This looked great until I noticed that the div would not show above a drop down box(<select>).
Apparently, there is no way I can set the z-index of the drop down box to set it behind my div (because a drop down box is a 'windowed' element).
I then used a popupbox:
Code:
var MimPopup = window.createPopup();
MimPopup.document.innerHTML = "this is a popup";
MimPopup.document.style.backgroundColor = "silver";
function OnclickButton
{
MimPopup.show(200,200,200,200)
}
This looked great! Positioned right above the dropdown list and all... until I noticed that, whenever I click on something outside the popup, the popup closes automaticly.
So, my questions are:
* Is there by any chance a possible way of positioning a div above a drop down box (all the other related questions said that it wasn't possible to do but I'm just asking)
* Is there a way I can prevent the popup to close automaticly when something is clicked.
Thanks in advance for the help
Greetz
VBMim