IWebBrowser2 and Document
-
Is there any way to separate IWebBrowser2 and its document? IWebBrowser2 has an
get_Document()
function. I want something likeput_Document
. So I can "switch" documents of the browser. Like you do in a View (even in SDI). Does anyone know how to do that and if it is possible at all? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer Need Web-based database administrator? You already have it! -
Is there any way to separate IWebBrowser2 and its document? IWebBrowser2 has an
get_Document()
function. I want something likeput_Document
. So I can "switch" documents of the browser. Like you do in a View (even in SDI). Does anyone know how to do that and if it is possible at all? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer Need Web-based database administrator? You already have it!Why not create temporary html files with the different "documents" and just
Navigate
to them when needed? Cheers! Marc -
Why not create temporary html files with the different "documents" and just
Navigate
to them when needed? Cheers! MarcUse document.write(...) method.
-
Why not create temporary html files with the different "documents" and just
Navigate
to them when needed? Cheers! MarcWell, I even can store all HTML in
IStream
and load again (will be faster) or usedocument.write()
as ADK says below. But in all 3 ways, the document will be disconnected from the actual site. Links won't be resolved properly. Of course I can change links from relative to full, then all will work correctly, but... Something tells me that this is not the right way :) Well, I don't think I can do what I wanted to do, but I found another solution, workaround :) Since I can't change Document of the browser... I can change the whole window ;P. Just like in withCView
. The only disadvantage I see, that I will have additional Browser control (IWebBrowser2
) for each window.... But I guess this is the price :) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer Need Web-based database administrator? You already have it!