Hello,
My main window (parent) pop ups a child. Child includes different pages
from web. Client doing some thing in this popup (surfing) and want to
close after. How can parent sense this action and reaction against
this.
Actually i intent to return main menu on the parent window when popup
closed.
Thank you
Caglar ORHAN (=C7aglar ORHAN)

Re: How to sense popup closings from the parent window? by caglaror

caglaror
Sat Jul 15 06:05:29 CDT 2006

When the popup created by
Set objIE =3D CreateObject("InternetExplorer.Application")
code.
So can we
1) reach the objIE.document elements
2) focus to new created object if it is blur.
3) navigate the popup to secure (htpps) sites

thank you
=C7aglar ORHAN - Caglar ORHAN


Re: How to sense popup closings from the parent window? by Csaba

Csaba
Sat Jul 15 09:22:10 CDT 2006

caglaror wrote:
> When the popup created by
> Set objIE = CreateObject("InternetExplorer.Application")
> code.
> So can we
> 1) reach the objIE.document elements

Um,
objIE.document.body
objIE.document.getElementById('myId')

> 2) focus to new created object if it is blur.

You can use CreateObject("WScript.Shell").AppActivate (...)

> 3) navigate the popup to secure (htpps) sites

objIE.Navigate2 "site to go to"

As to your first question in this thread about detecting the close of a
popup created via CreateObject("InternetExplorer.Application"), I
suggest that you create it, instead, as follows, so that you can use:

Set objIE =
WScript.CreateObject("InternetExplorer.Application","prefix") and then
add

Sub prefix_OnQuit
... Do stuff here ...
End Sub

Csaba Gabor from New York


Re: How to sense popup closings from the parent window? by caglaror

caglaror
Sat Jul 15 17:03:02 CDT 2006

Thank you very much for your answer but i tried some of refix calling
inside my hta application and no such object error i took.
Shall we make Public while we are creating instance of IE object.
So it will be usefull in other vbscript functions in our codes.
Thanks again.
Caglar ORHAN
Ankara /Turkey

> As to your first question in this thread about detecting the close of a
> popup created via CreateObject("InternetExplorer.Application"), I
> suggest that you create it, instead, as follows, so that you can use:
>
> Set objIE =
> WScript.CreateObject("InternetExplorer.Application","prefix") and then
> add
>
> Sub prefix_OnQuit
> ... Do stuff here ...
> End Sub
>
> Csaba Gabor from New York