Re: Is it possible to enumerate all javascript scripts on a web page?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 3 Apr 2007 08:50:44 -0400
"Angus" <nospam@xxxxxxxxx> wrote in message
news:%23mu%23nxedHHA.3632@xxxxxxxxxxxxxxxxxxxx
** How do I query for IDispatchEx?
By calling QueryInterface, of course.
I am using this sort of thing at the moment:
CComPtr<IHTMLElementCollection> spElementColl;
// Retrieves an interface pointer to a zero-based collection of all
the // script objects in an HTML document
hr=spHTMLDoc->get_scripts(&spElementColl);
I was talking about IHTMLDocument::get_Script, _not_
IHTMLDocument2::get_scripts. The two produce very different objects.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- References:
- Prev by Date: Re: Is it possible to enumerate all javascript scripts on a web page?
- Next by Date: Re: Is it possible to enumerate all javascript scripts on a web page?
- Previous by thread: Re: Is it possible to enumerate all javascript scripts on a web page?
- Next by thread: Re: Is it possible to enumerate all javascript scripts on a web page?
- Index(es):