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

Web Browser control from VBScript

716 views
Skip to first unread message

Thomas Powell

unread,
Apr 26, 2000, 3:00:00 AM4/26/00
to
Can the WebBrowser control be managed using vbscript?

Is so what is the sytax for setting the object? I need to access more
functionality than the document or window object expose.

Thanks,

TSP

Michael Harris

unread,
Apr 26, 2000, 3:00:00 AM4/26/00
to
The WebBrowser control needs a container window.  The InternetExplorer.Application object is what you want...
 

--
Michael Harris
MVP Scripting
 
 
"Thomas Powell" <tpo...@buytrek.com> wrote in message news:OPmS$69r$GA.267@cppssbbsa05...

Michael Harris

unread,
Apr 27, 2000, 3:00:00 AM4/27/00
to
As an ActiveX component created within an existing browser, it's just like any other "unsafe"
ActiveX object...

--
Michael Harris
MVP Scripting


"Thomas Powell" <tpo...@buytrek.com> wrote in message news:e6bDhSFs$GA.76@cppssbbsa05...
I am having difficulty getting the InternetExplorer object to work. I keep
getting ActiveX component can't create object.

I have attached the web page I am using to test this functionality.

Thanks in advance for any help.


Tom Powell

Michael Harris" <Please...@To.NewsGroup> wrote in message
news:uQJUpD$r$GA.261@cppssbbsa05...

Thomas Powell

unread,
Apr 27, 2000, 3:00:00 AM4/27/00
to
I appreciate your help on this.

Is there any way to control the InternetExplorer object from VBScript inside
of the browser?

TSP

"Michael Harris" <Please....@To.NewsGroup> wrote in message
news:OjdneCJs$GA.76@cppssbbsa05...

Michael Harris

unread,
Apr 27, 2000, 3:00:00 AM4/27/00
to
What are you trying to accomplish that you can't already do from within the browser?

--
Michael Harris
MVP Scripting


"Thomas Powell" <tpo...@buytrek.com> wrote in message news:uTe0RUJs$GA.259@cppssbbsa05...

Thomas Powell

unread,
Apr 28, 2000, 3:00:00 AM4/28/00
to
I have created a CommBand (Explorer Bar) and I want to accomplish a couple
of things with it:

1) When a user navigates from within the CommBand (clicks on a link) I want
to taget the main browser window. Currently my choices are navigating the
current window or spawning a new one. With the InternetExplorer object I
could do what I want.

2) I also want to capture the OnNavigate Event and take control of the
document object (do some checking and perhaps manipulation of it) prior to
rendering it.

Thanks,

Tom Powell

"Michael Harris" <Please...@To.NewsGroup> wrote in message

news:Ok34iVLs$GA.267@cppssbbsa05...

Michael Harris

unread,
Apr 28, 2000, 3:00:00 AM4/28/00
to
As for objective 1), I don't see where using an IE object gains you all that much over spawn a new
window with window.open or showModalDialog or showModlesslDialog.

As for objective 2), I don't know how you would capture OnNavigate since all you have is the native
vbscript CreateObject which doesn't have the event sinking feature of WScript.CreateObject. In
order to do this you would need to use something like the ScriptX component (from www.meadroid.com).

--
Michael Harris
MVP Scripting


"Thomas Powell" <tpo...@buytrek.com> wrote in message news:e4JKY6Rs$GA.216@cppssbbsa03...

0 new messages