iframe z-index with non html documents

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

    #1

    iframe z-index with non html documents

    Hello,

    Is it possible that the z-index property for an iframe doesn't work
    when the SRC attribute is linked to a non html document? (i.e. a pdf
    document)

    That is what I am experiencing. I have a dropdown menu and an iframe
    and I want the menu always to be displayed above any object in the
    page. When the iframe is empty or it has an html page within, I can
    achieve this by setting the z-index property in the menu(div) higher
    than the one in the iframe, but when I try to display a pdf document
    in the iframe (what I really want to do), the menu is displayed below
    the iframe.

    Has anybody come up with this problem before?
    Any help will be really apreciated.

    (I am using IE 6.0)
  • Randy Webb

    #2
    Re: iframe z-index with non html documents

    Toni wrote:
    [color=blue]
    > Hello,
    >
    > Is it possible that the z-index property for an iframe doesn't work
    > when the SRC attribute is linked to a non html document? (i.e. a pdf
    > document)[/color]

    What this has to do with Javascript is beyond me.
    comp.infosystem s.www.authoring.stylesheets
    [color=blue]
    > That is what I am experiencing. I have a dropdown menu and an iframe
    > and I want the menu always to be displayed above any object in the
    > page. When the iframe is empty or it has an html page within, I can
    > achieve this by setting the z-index property in the menu(div) higher
    > than the one in the iframe, but when I try to display a pdf document
    > in the iframe (what I really want to do), the menu is displayed below
    > the iframe.[/color]

    I believe, but could be wrong, that you will find that the Adobe Acrobat
    Reader is a window of its own. Meaning, it doesn't play by the z-index
    rules because it is not part of the browser anymore.

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Grant Wagner

      #3
      Re: iframe z-index with non html documents

      Toni wrote:
      [color=blue]
      > Hello,
      >
      > Is it possible that the z-index property for an iframe doesn't work
      > when the SRC attribute is linked to a non html document? (i.e. a pdf
      > document)
      >
      > That is what I am experiencing. I have a dropdown menu and an iframe
      > and I want the menu always to be displayed above any object in the
      > page. When the iframe is empty or it has an html page within, I can
      > achieve this by setting the z-index property in the menu(div) higher
      > than the one in the iframe, but when I try to display a pdf document
      > in the iframe (what I really want to do), the menu is displayed below
      > the iframe.
      >
      > Has anybody come up with this problem before?
      > Any help will be really apreciated.
      >
      > (I am using IE 6.0)[/color]

      The PDF document you are viewing in the iframe is placed there using the
      PDF viewer ActiveX control. The PDF viewer ActiveX control is a windowed
      element, and as such, appears on top of all other elements (same as
      <select>).

      More information about how z-index works in IE for various HTML elements
      at <url: http://support.microsoft.com/default...b;en-us;177378
      />

      --
      Grant Wagner <gwagner@agrico reunited.com>
      comp.lang.javas cript FAQ - http://jibbering.com/faq

      Comment

      Working...