Refresh my memory:Interactions between separate IE instances?

Refresh my memory:Interactions between separate IE instances?

am 23.01.2008 21:10:02 von BChernick

Ok guys, refresh my memory. I have a vague memory from years ago of a Dot
Net 1.1 web app in which one window was opened from another (not a message
box or anything like that, but a fully separate Internet Explorer. When the
finish button was clicked, the second window while closing somehow triggered
a refresh in the window that originally called it.

What was this technique called?

Re: Refresh my memory:Interactions between separate IE instances?

am 23.01.2008 21:48:17 von Ralph Wiggum

Javascript's opener property can be used to call functions in the original window from the new window. Use the onunload event of the new window to trigger the refresh.

B. Chernick wrote:
> Ok guys, refresh my memory. I have a vague memory from years ago of a Dot
> Net 1.1 web app in which one window was opened from another (not a message
> box or anything like that, but a fully separate Internet Explorer. When the
> finish button was clicked, the second window while closing somehow triggered
> a refresh in the window that originally called it.
>
> What was this technique called?

RE: Refresh my memory:Interactions between separate IE instances?

am 23.01.2008 21:50:03 von pbromberg

Not sure if the "technique" actually has a name, but essentially you are
telling the parent to call a method from inside the unload event handler of
the child window (or a similar event). it can also be done in the parent
window itself using stuff like the returnValue on the window object returned
from the window.open method.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"B. Chernick" wrote:

> Ok guys, refresh my memory. I have a vague memory from years ago of a Dot
> Net 1.1 web app in which one window was opened from another (not a message
> box or anything like that, but a fully separate Internet Explorer. When the
> finish button was clicked, the second window while closing somehow triggered
> a refresh in the window that originally called it.
>
> What was this technique called?

Re: Refresh my memory:Interactions between separate IE instances?

am 25.01.2008 14:53:02 von BChernick

Thanks to both of you.

After some hacking I was able to get a demo going, using a javascript
function call from a link to launch a 2nd window. I then put a button and a
textbox on the form of the 2nd window. When the button is clicked, the
textbox's value is put in a session state variable and a
ClientScriptManager.RegisterStartUpScript call (would have been
Page.RegisterStartupScript in Dot Net 1.1) is used to call another javascript
function which closes the popup and refreshes the parent window. The refresh
allows the display of the session state variable.

(But this still doesn't feel like what I used to to on my last job. I could
have sworn there was another VB function that was used. Oh well, at least
this works.)

"Ralph Wiggum" wrote:

> Javascript's opener property can be used to call functions in the original window from the new window. Use the onunload event of the new window to trigger the refresh.
>
> B. Chernick wrote:
> > Ok guys, refresh my memory. I have a vague memory from years ago of a Dot
> > Net 1.1 web app in which one window was opened from another (not a message
> > box or anything like that, but a fully separate Internet Explorer. When the
> > finish button was clicked, the second window while closing somehow triggered
> > a refresh in the window that originally called it.
> >
> > What was this technique called?
>