🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #52

Re: TCPPWebBrowser and obtaining source after changing

#52
From: Remy Lebeau (TeamB)
Date: Tue, 13 Mar 2007 23:55
31 lines
1650 bytes
"Tom" <tom@nospam.net> wrote in message
news:45f70570@newsgroups.borland.com...

> After modifying the source by using IHTMLDOMNode to insert a
> new node the source code that's returned does not reflect this
change
> (what's shown in the browser is correct).

Instead of using IPersistStreamInit, try grabbing the current HTML
from the document's outerHTML property instead, for example:

    WideString Source;

    TComInterface<IHTMLDocument3> htm;

    if( Browser->Document )
        Browser->Document->QueryInterface(IID_IHTMLDocument3,
(LPVOID*)&htm);

    if( htm )
    {
        TComInterface<IHTMLElement> element;
        htm->get_documentElement(&element);

        if( element )
            element->get_outerHTML(&Source);
    }


Gambit
Technical Details
Message-ID: <45f72d00$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45f70570@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,63670a97ac142f40
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <45f70570@newsgroups.borland.com>
Subject: Re: TCPPWebBrowser and obtaining source after changing
Date: Tue, 13 Mar 2007 15:55:22 -0800
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45f72d00$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1173826816 75.83.34.171 (13 Mar 2007 16:00:16 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail