Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Pop up Problem

Question posted by: onlymukti4u (Member) on July 4th, 2008 10:56 AM
Hi,

I am facing a problem in my page. When any popup I am displaying it is showing the below listboxe , Can anyone help me out in this regard. I can avoid it by using JavaScript to hide it when the popup will be there, but I want whether there is any other alternative rather than this...

Thanks in advance.

Regards,
Prasad
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Death Slaught's Avatar
Death Slaught
Site Addict
918 Posts
July 4th, 2008
11:15 PM
#2

Re: Pop up Problem
Please provide your full mark up or a link to your test site.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")

Reply
onlymukti4u's Avatar
onlymukti4u
Member
45 Posts
July 7th, 2008
09:25 AM
#3

Re: Pop up Problem
I have given the code below where the listbox is coming above the popup.

Code: ( text )
  1. <html>
  2. <head>
  3.     <title>Method Two</title>
  4.     <style>
  5.     #layer {
  6.         position: absolute;
  7.         top: 10px;
  8.         left: 0px;
  9.         width: 220px;
  10.         height: 100px;
  11.         border: 1px solid black;
  12.         background-color: #e4e4e4;
  13.         padding: 10px;
  14.         z-index: 11;
  15.         opacity:10
  16.     }
  17.     #iframe {
  18.         position: absolute;
  19.         top: 10px;
  20.         left: 0px;
  21.         width: 400px;
  22.         height: 400px;
  23.         z-index: 10;
  24.    
  25.     }
  26.    
  27.  
  28.  
  29.     </style>
  30.     <script type="text/javascript">
  31.     function fun(){
  32.    
  33.     document.getElementById("layer").style.visibility="visible";
  34.        document.getElementById("layer").style.display="block";
  35.     }
  36.    
  37.     function fun1(){
  38.    
  39.     document.getElementById("layer").style.visibility="hidden";
  40.        document.getElementById("layer").style.display="none";
  41.     }
  42.     </script>
  43. </head>
  44.  
  45. <body bgcolor="#FFCC66">
  46.  
  47.  
  48.     <div id="layer" style="visibility:hidden; display:none">
  49.  
  50.    
  51.     <input name="" type="button" value="ok" onClick="fun1()">
  52.     </div>
  53.     <select name="" style=" width:100px"></select>
  54.     <select name="" style=" width:100px"></select>
  55.     <select name="" style=" width:100px"></select>
  56.  
  57.    
  58.     <input name="input" type="button" onClick="fun()" value="click Here">
  59. </body>
  60. </html>

Last edited by acoder : July 8th, 2008 at 12:01 PM. Reason: Added [code] tags
Reply
hsriat's Avatar
hsriat
Expert
1,460 Posts
July 7th, 2008
04:25 PM
#4

Re: Pop up Problem
Your code is working fine (as expected) with Firefox, Opera and Safari.

Reply
Death Slaught's Avatar
Death Slaught
Site Addict
918 Posts
July 7th, 2008
05:49 PM
#5

Re: Pop up Problem
What browser are you have the problem with? It appears the same in IE, Safari, FireFox, and Opera for me. If your "pop-up" isn't covering your select option then simply position it absolutely and increase the width.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")

Reply
onlymukti4u's Avatar
onlymukti4u
Member
45 Posts
July 8th, 2008
03:46 AM
#6

Re: Pop up Problem
I want the pop up should display there itself above the listboxes, but problem is the listboxes are visible above the popup. I am using IE6.

Reply
onlymukti4u's Avatar
onlymukti4u
Member
45 Posts
July 8th, 2008
03:48 AM
#7

Re: Pop up Problem
I am checking in ie6 but in this the listboxes are displaying above the pop up, how come for you it is working fine, which version of ie you are using.

Reply
acoder's Avatar
acoder
Site Moderator
10,971 Posts
July 8th, 2008
12:02 PM
#8

Re: Pop up Problem
onlymukti4u, as a full member now, you should know that we expect your code to be posted in [CODE] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use the tags in future.

MODERATOR.

Reply
acoder's Avatar
acoder
Site Moderator
10,971 Posts
July 8th, 2008
12:04 PM
#9

Re: Pop up Problem
Quote:
Originally Posted by onlymukti4u
I am checking in ie6 but in this the listboxes are displaying above the pop up, how come for you it is working fine, which version of ie you are using.
This is a common problem in IE6 where windowed controls appear above DHTML popups/divs. Either hide the select element/list-box or use a technique known as "iframe shimming".

Reply
Reply
Not the answer you were looking for? Post your question . . .
183,907 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top HTML / CSS Forum Contributors