-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: s_hashim
Message 4 in Discussion



Dear SOVON,
 
Combo Box / Select Box will not have the 
Z-Index property hence, we need to hide the select box to overcome this 
probolem.
 
Look at the following attached code to hide 
the comob/select box through JavaScript.
 
Just add this code in which you want to 
solve the combo/select box problem.


<script 
language=javascript>
 
/******************************************
Hideselectboxes
IE5+ and NS6+ only - ignores 
the other browsers
 
Because of the selectbox bug in the browsers that makes 
selectboxes 
have the highest z-index whatever you do 
this script will check for 
selectboxes that interfear with
your menu items and then hide them. 
/*****************************************/
if(bw.dom&&!bw.op){
  
makeCM.prototype.sel=0
  
makeCM.prototype.onshow+=";this.hideselectboxes(pm,pm.subx,pm.suby,maxw,maxh,pm.lev)"
  
makeCM.prototype.hideselectboxes=function(pm,x,y,w,h,l){
    
var selx,sely,selw,selh,i
    
if(!this.sel){
      
this.sel=this.doc.getElementsByTagName("SELECT")
    
this.sel.level=0
    }
    var 
sel=this.sel
    
for(i=0;i<sel.length;i++){
   selx=0; sely=0; var 
selp;
   if(sel[i].offsetParent){selp=sel[i]; 
while(selp.offsetParent){selp=selp.offsetParent; selx+=selp.offsetLeft; 
sely+=selp.offsetTop;}}
   selx+=sel[i].offsetLeft; 
sely+=sel[i].offsetTop
   selw=sel[i].offsetWidth; 
selh=sel[i].offsetHeight   
   if(selx+selw>x 
&& selx<x+w && sely+selh>y && 
sely<y+h){
    if(sel[i].style.visibility!="hidden"){sel[i].level=l; 
sel[i].style.visibility="hidden"; if(pm){ if(!pm.mout) pm.mout=""; 
pm.mout+=this.name+".sel["+i+"].style.visibility='visible';"}}
      
}else if(l<=sel[i].level && !(pm&&l==0)) 
sel[i].style.visibility="visible"
    }
  }
}
 
</script>
 

Keep Smiling, 
Regards. 

Sayad Hashim Ali Kazi
SQL Star International Ltd.
SQL 
House,
#13,Infocity,Madhapur,
Hyderabad 500033.
Tel: 
+91-40-23101625(Off)
     +91-40-55365573(Res)
e-mail: 
[EMAIL PROTECTED] 
website: www.sqlstarintl.com 

  -----Original Message-----
From: Sovon 
  [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 9:30 
  AM
To: BDOTNET
Subject: Dropdown list always renders on 
  top of other controls


  
    
      
      New Message on BDOTNET
    
      

  Dropdown 
    list always renders on top of other controls


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: Sovon 
            
              

                Hi,
                I am trying to implement a javascript datepicker in 
                a ASP.NET page. The problem is that if there is a drop down 
                list in the area where the date picker is getting rendered then 
                the drop down list appears obove the date picker inspite of 
                explecitly setting the Z-index of the controls. I understand 
                this is a bug with the IE 5+. 
                 
                Is there any work around for this?
                 
                Regards,
                Sovon.
View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to