Use Script Implementation of IE in ActiveX Plugin
- From: "Alexander Adam" <contact@xxxxxxxxxxx>
- Date: 25 Oct 2006 04:52:43 -0700
We've got an ATL ActiveX Control that is used by an object/embed or
iframe. It shows custom media read from the source. Now we've got an
internal DOM-alike structure of interfaces. The question is how can we
use the IE's script instances to run js scripts in our media? I know
that we have to have our dom classes to implement IActiveScriptSite but
how can we populate those to the host (IE) correctly? The sense behind
this is to be able to communicate between html and our custom media.
To be more specific. Our ActiveX exposes this:
IDocument getDocument()
when embed in a HTML Page in IE e.g. with the object tag it should be
possible to make:
<script ..>
object_tag_id.getDocument().blabla()
</script>
on the other side, it should be possible that we can access the hosting
browsers dom inside of our custom media script, e.g. by doing
parent.location.href = ".."
How can we correctly achieve to use the ActiveScript of the hosting IE?
About the embed tag.. we've been able to get the file content for
object and iframe but if our media is embed through the embed tag it
doesn't seem to work as neither IPropertyBag nor IPersistFile is called
though, any idea?
Thanks very much for any things, thoughts and ideas as I've been
seeking a while without finding any useful resources,
Regards
Alexander Adam
.
- Follow-Ups:
- Re: Use Script Implementation of IE in ActiveX Plugin
- From: Igor Tandetnik
- Re: Use Script Implementation of IE in ActiveX Plugin
- Prev by Date: Re: start new IE7 tab
- Next by Date: Re: GetLastError
- Previous by thread: URL History with IE7
- Next by thread: Re: Use Script Implementation of IE in ActiveX Plugin
- Index(es):