=vd=
August 6th, 2006, 08:16 AM
I need to create <iframe> in document and fill it some data.
I try to do it using folowing 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:
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
I try to do it using folowing 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:
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