[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    close all child browser windows when parent closes
From:       "Raymond" <pps18033 () hotmail ! com>
Date:       2005-04-29 11:09:03
Message-ID: BAY22-DAV134FD9FE4A05DFB0FD974D85240 () phx ! gbl
[Download RAW message or body]

Hi people,

I need to do this in my application: close all child browser windows 
automatically when the parent window closes or timeouts or the user logs 
out.

I find it difficult or impossible to do with Tapestry because of the usage 
of PopupLinkRender.

With ordinary web programming I could do it by some Javascript like this:
<script language="JavaScript"><!--
openWins = new Array();
curWin = 0;

function openWin(page) { openWins[curWin++] = window.open(page,'_blank'); }

function closeAll() {
    for(i=0; i<openWins.length; i++) if (openWins[i] && !openWins[i].closed) 
openWins[i].close();
}
//--></script>

But with the Tapestry framework it becomes quite complicated.

Any solution? Thanks.
Raymond 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic