Re: Sink events from window.external
From: Mark Guerrieri (mguerrieri_at_nospam_cmsgrp.com)
Date: 02/10/05
- Previous message: Mark Guerrieri: "Re: Sink events from window.external"
- In reply to: Igor Tandetnik: "Re: Sink events from window.external"
- Next in thread: Michael Harris \(MVP\): "Re: Sink events from window.external"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Feb 2005 11:17:58 -0500
>
> It's IObjectWithSite - my bad. You can happily implement it on a
> non-visual component, whether in-proc or out-of-proc. Alternatively, you
> can just wait until all references on you are released.
>
Sadly, I knew what you meant and retyped the wrong interface name anyway!
As for waiting for all references to be released, that won't happen, as the
Client App holds a reference to the object to keep it alive.
>
> In this case, whoever implements window.external could notify the
> component (perhaps by calling a special method on a custom interface)
> that the page got unloaded, so the component can release event sink
> interfaces.
>
That could be done, as I implement window.external myself.
Anyway, it just seems like a lot of work for something that I thought would
be easy... I should have realized that nothing is ever easy...
What I have done for a workaround in the meantime is a similar principal- I
created an in-process server that fires all the same events and the User
object. It has a method "Connect" that takes a User object as a parameter
and sinks all of its events. All this new object does is re-fire any events
that the User object sends. I can then create this server on a page with an
<OBJECT> tag and sync its events using the standard "Object_Event" style,
which in reality is the same as sinking the events of the User object
itself. Very roundabout, but much easier than reimplementing the User
object and Browser container...
Mark
- Previous message: Mark Guerrieri: "Re: Sink events from window.external"
- In reply to: Igor Tandetnik: "Re: Sink events from window.external"
- Next in thread: Michael Harris \(MVP\): "Re: Sink events from window.external"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|