Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : TWebBrowser - Parsing HTML Then Display
| Subject: | TWebBrowser - Parsing HTML Then Display |
| Posted by: | "Anthoni Gardner" (nono..@nono.com) |
| Date: | Sat, 10 Jun 2006 15:25:11 |
Hello all,
Not sure if this is the write group, but here goes anyway.
I have some html on my server that has something like the following;
<html>
<head>
<meta name="collection" content="true">
</head>
<body>
<object name="location" tag="mySrc.dfm">
</object>
<!--#Main Menu-->
<!--#Class Name="TDataStream"-->
</body>
</html>
What I want to do is, actually load that html, parse it and depending on the
meta status replace certain parts of the document BEFORE displaying it, then
pass it over to the TWebBrowser / TEmbeddedWB to display it.
I have the Extended IEParser V2 component, and I can in fact use this to
parse said document, but then it leaves me with a IHTMLDocument2 interface.
I know the TWebBrowser has this interface, but how do I then get it to read
my parsed and altered IHTMLDocument2 ?
Any suggestions would be helpful.
Regards
Anthoni