Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Trouble with pop-up menu


Message #1 by Fernando Farfan <FFarfan@b...> on Tue, 19 Feb 2002 11:05:13 -0600
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C1B967.98659A10

Content-Type: text/plain



Hi folks, I need your help:

I have a page that contains two frames. The upper frame is the options

frame, and when the mouse rolls over each option, the pop-up menu appears in

the lower frame. But my problem is that when the lower page contains

drop-down lists (ie. <select>...</select>) the pop-up menu appears UNDER the

drop-down list... How can I fix this???

Thanks!




Message #2 by "Debreceni, David" <Debreceni.David@h...> on Tue, 19 Feb 2002 13:58:25 -0500
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C1B977.68BF7870

Content-Type: text/plain;

	charset="iso-8859-1"



We have the same problem here, it seems that the popup windows don't cover

the select boxes.  What we did was write a script that basically hides the

select box when the popup happens.

 

 

 

 

David Debreceni

Senior Visual Basic/ASP Developer

xxx-xxx-xxxx  x 1086



-----Original Message-----

From: Fernando Farfan [mailto:FFarfan@b...]

Sent: Tuesday, February 19, 2002 12:05 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Trouble with pop-up menu







Hi folks, I need your help: 

I have a page that contains two frames. The upper frame is the options

frame, and when the mouse rolls over each option, the pop-up menu appears in

the lower frame. But my problem is that when the lower page contains

drop-down lists (ie. <select>...</select>) the pop-up menu appears UNDER the

drop-down list... How can I fix this???



Thanks! 






$subst('Email.Unsub'). 






Message #3 by Fernando Farfan <FFarfan@b...> on Tue, 19 Feb 2002 13:07:17 -0600
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C1B978.A5C1F350

Content-Type: text/plain



I've downloaded two samples... One of them is fancier but covers the select

boxes... the other one doesn't do that, but it's not as cool as the other

one... But I haven't found any parameter or value to control that

behavior...

 



-----Original Message-----

From: Debreceni, David [mailto:Debreceni.David@h...] 

Sent: Martes, 19 de Febrero de 2002 12:58 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Trouble with pop-up menu





We have the same problem here, it seems that the popup windows don't cover

the select boxes.  What we did was write a script that basically hides the

select box when the popup happens.

 

 

 

 

David Debreceni

Senior Visual Basic/ASP Developer

xxx-xxx-xxxx  x 1086



-----Original Message-----

From: Fernando Farfan [mailto:FFarfan@b...]

Sent: Tuesday, February 19, 2002 12:05 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Trouble with pop-up menu







Hi folks, I need your help: 

I have a page that contains two frames. The upper frame is the options

frame, and when the mouse rolls over each option, the pop-up menu appears in

the lower frame. But my problem is that when the lower page contains

drop-down lists (ie. <select>...</select>) the pop-up menu appears UNDER the

drop-down list... How can I fix this???



Thanks! 






$subst('Email.Unsub'). 






$subst('Email.Unsub'). 






Message #4 by "Debreceni, David" <Debreceni.David@h...> on Tue, 19 Feb 2002 14:33:30 -0500
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C1B97C.4F775B30

Content-Type: text/plain;

	charset="iso-8859-1"



These are the functions that we use.  We have the luxury of being all IE 5

or better so I am not sure if this will work with netscape or not.  All we

do is call these when we have a menu item popup.

 

function hideSelect() {

 // this function hides select boxes to prevent overlapping

 var numberForms = document.forms.length;

 var formIndex;

 for (formIndex = 0; formIndex < numberForms; formIndex++) {

  var theForm = document.forms[formIndex]

  for (var iElement = 0; iElement <

document.forms[formIndex].elements.length;iElement++) {  

   if (theForm[iElement].disabled == true) {

    // hide disabled select boxes

    theForm[iElement].style.visibility = "hidden"

   }

   else {

    if (theForm[iElement] != null){

     if (theForm[iElement].type == undefined) {

      //ignore, invalid element

     }

     else {

      theElement = theForm[iElement];

      var thisElementType = theElement.type.toString()

      var isTrue = thisElementType.indexOf("select")

      if (isTrue != "-1") {

       theElement.style.visibility = "hidden"

      }

     }

    }

   }

  }

 }

}

function showSelect() {

 // this function shows select boxes when operations are complete

 var numberForms = document.forms.length;

 var formIndex;

 for (formIndex = 0; formIndex < numberForms; formIndex++) {

  var theForm = document.forms[formIndex]

  for (var iElement = 0; iElement <

document.forms[formIndex].elements.length;iElement++) {  

   if (theForm[iElement].disabled == true) {

    //hide if disabled

    theForm[iElement].style.visibility = ""

   }

   else {

    if (theForm[iElement] != null){

     if (theForm[iElement].type == undefined) {

      // ignore, because it is an invalid element

     }

     else {

      // hide the select

      theElement = theForm[iElement];

         var thisElementType = theElement.type.toString()

         var isTrue = thisElementType.indexOf("select")

         if (isTrue != "-1") {

       theElement.style.visibility = ""

         }

     }

    }

   }

  }

 }

}

 

 

 

 

David Debreceni

Senior Visual Basic/ASP Developer

xxx-xxx-xxxx  x 1086



-----Original Message-----

From: Fernando Farfan [mailto:FFarfan@b...]

Sent: Tuesday, February 19, 2002 2:07 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Trouble with pop-up menu





I've downloaded two samples... One of them is fancier but covers the select

boxes... the other one doesn't do that, but it's not as cool as the other

one... But I haven't found any parameter or value to control that

behavior...

 



-----Original Message-----

From: Debreceni, David [mailto:Debreceni.David@h...] 

Sent: Martes, 19 de Febrero de 2002 12:58 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Trouble with pop-up menu





We have the same problem here, it seems that the popup windows don't cover

the select boxes.  What we did was write a script that basically hides the

select box when the popup happens.

 

 

 

 

David Debreceni

Senior Visual Basic/ASP Developer

xxx-xxx-xxxx  x 1086



-----Original Message-----

From: Fernando Farfan [mailto:FFarfan@b...]

Sent: Tuesday, February 19, 2002 12:05 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Trouble with pop-up menu







Hi folks, I need your help: 

I have a page that contains two frames. The upper frame is the options

frame, and when the mouse rolls over each option, the pop-up menu appears in

the lower frame. But my problem is that when the lower page contains

drop-down lists (ie. <select>...</select>) the pop-up menu appears UNDER the

drop-down list... How can I fix this???



Thanks! 






$subst('Email.Unsub'). 






$subst('Email.Unsub'). 






$subst('Email.Unsub'). 







  Return to Index