Results 1 to 7 of 7

Thread: Iframe inside an Iframe?

  1. #1
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Iframe inside an Iframe?

    im trying to put an iframe inside an iframe, and its not working..is there any special tag i need to accomplish this?

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ikon
    im trying to put an iframe inside an iframe, and its not working
    The content of an inline frame is directly analogous to the noframes element: both are rendered only if frames are unsupported, or the user has disabled support.

    Personally, I think this behaviour is good not just for graceful degradation. Nested frames could lead to nested scrollbars, which is a horrible thing for an interface to have.

    Mike

  3. #3
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    i want to put the scrolling iframe script (which has NO scrollbars) inside an iframe...therefore i wont run into that problem..

    are you saying its not possible, or is there a way?

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ikon
    are you saying its not possible, or is there a way?
    I thought the first paragraph was very clear. Perhaps not.

    It is not possible to directly nest iframe elements. Though

    HTML Code:
    <iframe ...>
      <iframe ...>
      </iframe>
    </iframe>
    is legal, it is pointless as the inner iframe element should never be rendered. However, you can place additional inline frames in the document specified by the src attribute, but I don't recommend it.

    Mike

  5. #5
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    thats exactly what i did...the initial iframe loads an html...and that html contains its own iframe...its not working though...

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ikon
    thats exactly what i did...the initial iframe loads an html...and that html contains its own iframe
    Then you've done something wrong, but without seeing your markup, it's impossible to say what.

    Produce a minimal example which demonstrates the problem, and preferably place it on the Web (rather than posting code) and post a link. Doing this might help you solve the problem yourself.

    Mike

  7. #7
    Join Date
    Jan 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ikon
    im trying to put an iframe inside an iframe, and its not working..is there any special tag i need to accomplish this?
    Old message but in case anyone is still trying this;

    I have been messing around with embedding iframes within pages that are themselves embedded in iframes and I have found to get it to work on IE and Firefox you just need to make sure each iframe has its own unique name and id attributes.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •