DIV problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kekec

    #1

    DIV problem

    Hi!

    I have some zindex problem with DIV on my webform I have several
    asp:dropdownlis t controls and in some case i want to show div in middle of
    that form but when I show that div every dropdownlis is above my div
    element. I try to set zIndex style for div but no result. Can someone help
    me with that problem!

    tnx


  • Ram

    #2
    Re: DIV problem

    Dropdown lists themselves are windows in IE browser and they have the
    highest Z index. You can not show anything on top of them. Try to use
    a popup window without toolbars etc.

    Thanks
    Ram

    "Kekec" <slosoftware@ho tmail.com> wrote in message news:<#w8SzV$VD HA.2376@TK2MSFT NGP10.phx.gbl>. ..[color=blue]
    > Hi!
    >
    > I have some zindex problem with DIV on my webform I have several
    > asp:dropdownlis t controls and in some case i want to show div in middle of
    > that form but when I show that div every dropdownlis is above my div
    > element. I try to set zIndex style for div but no result. Can someone help
    > me with that problem!
    >
    > tnx[/color]

    Comment

    • PJ

      #3
      Re: DIV problem

      I can help you by being the messenger of bad news. There is no way to bring
      an html element in front of a drop down list. Certain windows controls
      always live above html block/inline elements. I use dhtml menu navigation
      that overlaps with specific page drop downs and the best solution I have
      found is to hide the offending controls when appropriate. The javascript I
      usually use is...

      // specific page javascript
      var ddl = document.getEle mentById("ddlBa dWindowsDropDow n");
      if ( ddl );
      controlsToHide[0] = ddl;

      // linked dhtml library...
      var controlsToHide = new Array():
      // time of hiding
      for ( int i = 0; controlsToHide. length; i++ )
      controlsToHide[i].style.display = "none";
      // time of showing
      for ( int i = 0; controlsToHide. length; i++ )
      controlsToHide[i].style.display = "inline"; // or "block" as appropriate

      "Kekec" <slosoftware@ho tmail.com> wrote in message
      news:%23w8SzV$V DHA.2376@TK2MSF TNGP10.phx.gbl. ..[color=blue]
      > Hi!
      >
      > I have some zindex problem with DIV on my webform I have several
      > asp:dropdownlis t controls and in some case i want to show div in middle of
      > that form but when I show that div every dropdownlis is above my div
      > element. I try to set zIndex style for div but no result. Can someone help
      > me with that problem!
      >
      > tnx
      >
      >[/color]


      Comment

      • Ram

        #4
        Re: DIV problem

        Dropdown lists themselves are windows in IE browser and they have the
        highest Z index. You can not show anything on top of them. Try to use
        a popup window without toolbars etc.

        Thanks
        Ram

        "Kekec" <slosoftware@ho tmail.com> wrote in message news:<#w8SzV$VD HA.2376@TK2MSFT NGP10.phx.gbl>. ..[color=blue]
        > Hi!
        >
        > I have some zindex problem with DIV on my webform I have several
        > asp:dropdownlis t controls and in some case i want to show div in middle of
        > that form but when I show that div every dropdownlis is above my div
        > element. I try to set zIndex style for div but no result. Can someone help
        > me with that problem!
        >
        > tnx[/color]

        Comment

        • Kekec

          #5
          Re: DIV problem

          tnx ! I'll try your code!


          "PJ" <pjwalNOSPAM@ho tmail.com> wrote in message
          news:OgowDqAWDH A.1872@TK2MSFTN GP12.phx.gbl...[color=blue]
          > I can help you by being the messenger of bad news. There is no way to[/color]
          bring[color=blue]
          > an html element in front of a drop down list. Certain windows controls
          > always live above html block/inline elements. I use dhtml menu navigation
          > that overlaps with specific page drop downs and the best solution I have
          > found is to hide the offending controls when appropriate. The javascript[/color]
          I[color=blue]
          > usually use is...
          >
          > // specific page javascript
          > var ddl = document.getEle mentById("ddlBa dWindowsDropDow n");
          > if ( ddl );
          > controlsToHide[0] = ddl;
          >
          > // linked dhtml library...
          > var controlsToHide = new Array():
          > // time of hiding
          > for ( int i = 0; controlsToHide. length; i++ )
          > controlsToHide[i].style.display = "none";
          > // time of showing
          > for ( int i = 0; controlsToHide. length; i++ )
          > controlsToHide[i].style.display = "inline"; // or "block" as[/color]
          appropriate[color=blue]
          >
          > "Kekec" <slosoftware@ho tmail.com> wrote in message
          > news:%23w8SzV$V DHA.2376@TK2MSF TNGP10.phx.gbl. ..[color=green]
          > > Hi!
          > >
          > > I have some zindex problem with DIV on my webform I have several
          > > asp:dropdownlis t controls and in some case i want to show div in middle[/color][/color]
          of[color=blue][color=green]
          > > that form but when I show that div every dropdownlis is above my div
          > > element. I try to set zIndex style for div but no result. Can someone[/color][/color]
          help[color=blue][color=green]
          > > me with that problem!
          > >
          > > tnx
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • PJ

            #6
            Re: DIV problem

            I can help you by being the messenger of bad news. There is no way to bring
            an html element in front of a drop down list. Certain windows controls
            always live above html block/inline elements. I use dhtml menu navigation
            that overlaps with specific page drop downs and the best solution I have
            found is to hide the offending controls when appropriate. The javascript I
            usually use is...

            // specific page javascript
            var ddl = document.getEle mentById("ddlBa dWindowsDropDow n");
            if ( ddl );
            controlsToHide[0] = ddl;

            // linked dhtml library...
            var controlsToHide = new Array():
            // time of hiding
            for ( int i = 0; controlsToHide. length; i++ )
            controlsToHide[i].style.display = "none";
            // time of showing
            for ( int i = 0; controlsToHide. length; i++ )
            controlsToHide[i].style.display = "inline"; // or "block" as appropriate

            "Kekec" <slosoftware@ho tmail.com> wrote in message
            news:%23w8SzV$V DHA.2376@TK2MSF TNGP10.phx.gbl. ..[color=blue]
            > Hi!
            >
            > I have some zindex problem with DIV on my webform I have several
            > asp:dropdownlis t controls and in some case i want to show div in middle of
            > that form but when I show that div every dropdownlis is above my div
            > element. I try to set zIndex style for div but no result. Can someone help
            > me with that problem!
            >
            > tnx
            >
            >[/color]


            Comment

            • Kekec

              #7
              Re: DIV problem

              tnx ! I'll try your code!


              "PJ" <pjwalNOSPAM@ho tmail.com> wrote in message
              news:OgowDqAWDH A.1872@TK2MSFTN GP12.phx.gbl...[color=blue]
              > I can help you by being the messenger of bad news. There is no way to[/color]
              bring[color=blue]
              > an html element in front of a drop down list. Certain windows controls
              > always live above html block/inline elements. I use dhtml menu navigation
              > that overlaps with specific page drop downs and the best solution I have
              > found is to hide the offending controls when appropriate. The javascript[/color]
              I[color=blue]
              > usually use is...
              >
              > // specific page javascript
              > var ddl = document.getEle mentById("ddlBa dWindowsDropDow n");
              > if ( ddl );
              > controlsToHide[0] = ddl;
              >
              > // linked dhtml library...
              > var controlsToHide = new Array():
              > // time of hiding
              > for ( int i = 0; controlsToHide. length; i++ )
              > controlsToHide[i].style.display = "none";
              > // time of showing
              > for ( int i = 0; controlsToHide. length; i++ )
              > controlsToHide[i].style.display = "inline"; // or "block" as[/color]
              appropriate[color=blue]
              >
              > "Kekec" <slosoftware@ho tmail.com> wrote in message
              > news:%23w8SzV$V DHA.2376@TK2MSF TNGP10.phx.gbl. ..[color=green]
              > > Hi!
              > >
              > > I have some zindex problem with DIV on my webform I have several
              > > asp:dropdownlis t controls and in some case i want to show div in middle[/color][/color]
              of[color=blue][color=green]
              > > that form but when I show that div every dropdownlis is above my div
              > > element. I try to set zIndex style for div but no result. Can someone[/color][/color]
              help[color=blue][color=green]
              > > me with that problem!
              > >
              > > tnx
              > >
              > >[/color]
              >
              >[/color]


              Comment

              Working...