CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Posts
    7

    Question How to feel iframe dynamically

    I need to create <iframe> in document and fill it some data.

    I try to do it using folowing code:
    Code:
    ifrCont = document.createElement("IFRAME");
    ifrCont.src = "";
    ifrCont.height = "100px";
    ifrCont.width = "100%";
    ifrCont.scrolling="auto";
    contBody = document.createElement("BODY");
    ifrCont.appendChild(contBody);
    
    editedContent.appendChild(ifrCont);
    But in line:
    Code:
    ifrCont.appendChild(contBody);
    IE says that "object isn't suport this argument or method"

    How I can feel iframe dynamically?

    Any suggestions would be welcome!
    TIA
    Last edited by =vd=; August 6th, 2006 at 07:21 AM.

  2. #2
    Join Date
    Aug 2006
    Posts
    7

    Re: How to feel iframe dynamically

    I find ONE way to solve my problem:

    document.frames[0].document.open();
    document.frames[0].document.write(root.innerHTML);
    document.frames[0].document.close();

    May be it will be helpful to someone

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured