Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12125
| From | "R.Wieser" <address@not.available> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Loading an htmlfile object from text - how to disable embedded scripts ? |
| Date | 2019-05-08 09:41 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <qau16t$25l$1@gioia.aioe.org> (permalink) |
Hello all,
I'm trying to search thru a HTML string as if its a DOM document. For
that I create an "htmlfile" object and ".write" the string into it. So far,
so good. The problem is that I get a warning dialog asking me if I want
to run the embedded scripts in it. Which ofcourse I do not want and also
throws a wrench in the automation process (needs human intervention).
The full script looks like this:
Set oDOM = CreateObject("htmlfile")
oDOM.Write sData
oDOM.Close
Questions:
1) Where can I find documentation on the VBScript "htmlfile" object ?
Half an hours worth googeling for "htmlfile" plus a combination of other
keywords or even for the objects classid (taken from the registry) gets me
nowhere.
2) How do I tell it to ignore (not run) any-and-all active content (just
load the text for DOM parsing) ?
Regards,
Rudy Wieser
Back to microsoft.public.scripting.vbscript | Previous | Next — Next in thread | Find similar | Unroll thread
Loading an htmlfile object from text - how to disable embedded scripts ? "R.Wieser" <address@not.available> - 2019-05-08 09:41 +0200
Re: Loading an htmlfile object from text - how to disable embedded scripts ? "Mayayana" <mayayana@invalid.nospam> - 2019-05-08 08:50 -0400
Re: Loading an htmlfile object from text - how to disable embedded scripts ? "R.Wieser" <address@not.available> - 2019-05-08 18:29 +0200
Re: Loading an htmlfile object from text - how to disable embedded scripts ? JJ <jj4public@vfemail.net> - 2019-05-08 21:17 +0700
csiph-web