Using DOM Interfaces

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

    #1

    Using DOM Interfaces

    I'm looking for help using the DOM interfaces in Internet Explorer. I want
    to open a new window from a page and copy the contents of a hidden <iframe>
    into it. I've been researching this and trying out some code for the past
    few days without any luck. Can someone tell me if this is even possible and
    perhaps offer some suggestions or sample code?


  • Martin Honnen

    #2
    Re: Using DOM Interfaces



    Tom Frantz wrote:
    [color=blue]
    > I'm looking for help using the DOM interfaces in Internet Explorer. I want
    > to open a new window from a page and copy the contents of a hidden <iframe>
    > into it. I've been researching this and trying out some code for the past
    > few days without any luck. Can someone tell me if this is even possible and
    > perhaps offer some suggestions or sample code?[/color]

    IE so far doesn't support importNode so there is no proper W3C DOM
    compliant way to copy nodes from one document (e.g. your hidden frame)
    to another document (e.g. your popup window). Instead with IE you need
    to copy the innerHTML or outerHTML of an element and insert it into the
    other page using insertAdjacentH TML for instance.

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    Working...