Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Accessing the InternetExplorer object from a web page

0 views
Skip to first unread message

t.hol...@praxa.com.au

unread,
Mar 24, 2000, 3:00:00 AM3/24/00
to
Does anyone know whether it is possible to access the hosting
InternetExplorer object's interface from script on a web page? I can't
find any hooks in the MSHTML DOM to get back to the InternetExplorer
object.

I'm asking because I need to execute the ExecWB method of the
InternetExplorer object from script on a web page. If it helps, the
page will always be embedded in Outlook 2000. It is possible to access
the Outlook object model from the script (via window.external), but
there don't seem to be any hooks from the Outlook object model to its
InternetExplorer object either.

If there's any way of doing this (even if it requires writing an
ActiveX control) then please let me know!

thanx
Tom


Sent via Deja.com http://www.deja.com/
Before you buy.

Tim Tabor

unread,
Mar 24, 2000, 3:00:00 AM3/24/00
to
Not from script. It's a security thing. You'll find ActiveX instructions @
http://support.microsoft.com/support/kb/articles/Q172/7/63.ASP

<t.hol...@praxa.com.au> wrote in message
news:8bf24q$q1j$1...@nnrp1.deja.com...

Steve Siegel

unread,
Mar 24, 2000, 3:00:00 AM3/24/00
to
If a cooperating host application implements getexternal, you can set
up a function within the hosting application which can then be called
from script. You may want to check the documentation for this out to
see if it suits your purposes.

Also, since both script and the host can manipuate info on the page,
this can form a basis of communication. Back and forth signaling can
be accomplished via polling, or possibly by use of an appropriate
event sink.

HTH,

Steve

Steve Siegel

unread,
Mar 24, 2000, 3:00:00 AM3/24/00
to


You may want to look at the MS KB article: Q188015 - HOWTO: Access
Methods/Properties of Container From Script

Tim Tabor

unread,
Mar 27, 2000, 3:00:00 AM3/27/00
to
I'm not sure I understand the referrals to Q188015. The question involves
accessing Internet Explorer, not extending the DOM by a custom WebBrowser
host. AFAIK, the access of a script hosted by IE is limited to the DOM.

<t.hol...@praxa.com.au> wrote in message
news:8bf24q$q1j$1...@nnrp1.deja.com...

> Does anyone know whether it is possible to access the hosting
> InternetExplorer object's interface from script on a web page? >

> thanx
> Tom
>


Tim Tabor

unread,
Mar 27, 2000, 3:00:00 AM3/27/00
to
You might refer to;
Permission Denied Accessing WebBrowser Control in HTML
http://support.microsoft.com/support/kb/articles/Q176/7/89.ASP

But back to your original question. It is possible to ExecWB from script:

http://msdn.microsoft.com/workshop/Author/script/DHTMLPRINT.asp

The example shows how to ExecWB for print and page setup. You can fiddle
with the downloadable print.js to call other olecmdid's. The approach works
regardless of whether the host is IE or custom.

/t

<t.hol...@praxa.com.au> wrote in message
news:8bf24q$q1j$1...@nnrp1.deja.com...
> Does anyone know whether it is possible to access the hosting

0 new messages