Wednesday, June 03, 2009 10:01 PMHere's a head scratcher for you gurus out there:
One idea we had was to try and save the DOM tree for the frameset, remove it from the document, splice in a body with an IFRAME, and re-insert the DOM tree from the frameset into the IFRAME. Similar to:
IHTMLDOMNode frameSetNode = frameSet->cloneNode();
document.frameset = null;
IHTMLBodyElement body = document.createElement("<BODY>");
IHTMLIFrameElement iframe = document.createElement("<IFRAME>");
This obviously isn't working. Any suggestions?
Tuesday, July 17, 2012 8:18 PM
Not sure if this is the issue. However the documentation for createElement states the following:
"In Microsoft Internet Explorer 4.0, the only new elements you can create are img, area, and option. As of Microsoft Internet Explorer 5, you can create all elements programmatically, except frame and iframe."
Thus when your attempt to create the IFRAME element fails.
Wednesday, July 18, 2012 2:55 PM
One idea we had was to try and save the DOM tree for the frameset, remove it from the document, splice in a body with an IFRAME, and re-insert the DOM tree from the frameset into the IFRAME.
I think you need make a deep clone of the frameset using cloneNode() method. This is clearly specified at MSDN:
Best regards, Sergey