George
Fri Aug 08 07:34:55 CDT 2003
correct me if i'm wrong
the 'outer' of the body element will give you the same as the 'inner' =
with body tags as you said, but...
the 'outer' of the documentElement of the main document will give you =
the whole html
maybe you overlooked the oDoc.DOCUMENTELEMENT.outerHTML part
;-)
"Neil Waterworth" <nospam-or-nwaterworth@lineone.net> wrote in message =
news:%23BmamvRXDHA.2464@TK2MSFTNGP09.phx.gbl...
> For me, this one seems to give the same as InnerHTML only surrounded =
by the
> <BODY></BODY> tags. Your http class suggestion in your previous post =
does
> the trick, though.
>=20
>=20
> "George" <george@zeliot.com> wrote in message
> news:uj2J3iOXDHA.1384@TK2MSFTNGP10.phx.gbl...
> well, this one does what you asked for, i guess
>=20
> oIE =3D CreateObject("internetexplorer.application")
> oIE.Navigate("
http://www.google.com")
> oDoc =3D oIE.Document
> html =3D oDoc.documentElement.outerHTML
>=20
>=20
> "Neil Waterworth" <nospam-or-nwaterworth@lineone.net> wrote in message
> news:%23p5LGbFXDHA.1896@TK2MSFTNGP12.phx.gbl...
> > Sorry, a bit OT.
> >
> > I can get the HTML from a web page between the <BODY>...</BODY> tags =
using
> > oie.Document.Body.InnerHTML in VFP (where oie is an internet =
explorer
> > application object)..
> >
> > So how do I get the <HEADER>...</HEADER> source, or even better the =
whole
> > HTML source?
> > ? oie.Document.Header.InnerHTML sounds like a good guess, but no =
luck
> there,
> > and I can't find anything else which looks promising.
> >
> > Thanks
> >
> >
> >
> > ---
> >
> > Checked by AVG anti-virus system (
http://www.grisoft.com).
> > Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003
> >
> >
>=20
>=20
> ---
>=20
> Checked by AVG anti-virus system (
http://www.grisoft.com).
> Version: 6.0.507 / Virus Database: 304 - Release Date: 04/08/2003
>=20
>