Re: Sink events from window.external

From: Nic Roche (nicroche_at_hotmail.com)
Date: 02/23/05


Date: Wed, 23 Feb 2005 10:23:52 +1000


> I can now access the properties and methods of the recordset, but how can
> I
> sink its events?

An option I am using (does not relate to window.external) is the
IHTMLWindow2 execScript Method.

You say you are using a webBrowser control - you should be able to evoke
this method.

You will also have to handle the situation of when there is not a method on
the current web-page to handle the event.

It may be a simpler solution.

Nic Roche

"Mark Guerrieri" <mguerrieri@cmsgrp.com> wrote in message
news:umuf%23oiDFHA.3324@TK2MSFTNGP15.phx.gbl...
>I have an app that hosts the browser control, and in the HTML of the
>browser
> I use window.external to assign an automation object to a variable in
> VbScript. The automation object is a straigt forward ATL object that
> implements IProviderClassInfo2 and IObjectSafety.
>
> Is it possible to sink events from this object in VbScript? It seems that
> the "Sub Object_Event" method only works if the object was created on the
> page. I cant find a way to get the browser control to call Advise for my
> object's events. Events fire and work fine outside of a scripting host.
>
> Say, for example, you passed a Recordset object into the script via
> window.external:
>
> Dim oRs
> Set oRs = window.external
>
> I can now access the properties and methods of the recordset, but how can
> I
> sink its events?
>
> Thanks-
>
> Mark Guerrieri
> CTO
> Creative Marketing Strategies
> mguerrieri@cmsgrp.com
>
>



Relevant Pages

  • Re: Sink events from window.external
    ... > I can now access the properties and methods of the recordset, ... > Is it possible to sink events from this object in VbScript? ... I cant find a way to get the browser control to call Advise for my ... > Dim oRs ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Sink events from window.external
    ... > I can now access the properties and methods of the recordset, ... > Is it possible to sink events from this object in VbScript? ... I cant find a way to get the browser control to call Advise for my ... > Dim oRs ...
    (microsoft.public.scripting.vbscript)
  • Re: Sink events from window.external
    ... > I have an app that hosts the browser control, and in the HTML of the ... > Is it possible to sink events from this object in VbScript? ... I cant find a way to get the browser control to ... Microsoft MVP Scripting ...
    (microsoft.public.scripting.vbscript)
  • Re: Sink events from window.external
    ... > I have an app that hosts the browser control, and in the HTML of the ... > Is it possible to sink events from this object in VbScript? ... I cant find a way to get the browser control to ... Microsoft MVP Scripting ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Sink events from window.external
    ... > I have an app that hosts the browser control, and in the HTML of the ... > Is it possible to sink events from this object in VbScript? ... I cant find a way to get the browser control to ... Microsoft MVP Scripting ...
    (microsoft.public.inetsdk.programming.scripting.vbscript)

Loading