|
There are events in the browser,
such as "onUnload" that allow you to catch the browser window leaving the page.
I have used this in a framed
environment, the top frame had this:
<FRAMESET ROWS="74,*" BORDER="0"
FRAMEBORDER="0" FRAMESPACING="0" >
and the function was
thus:
function OfferLogout()
{
var ConfirmBox = false; if (!document.layers){ if (!ToLogout) { logout = confirm('Would you like to logout now?'); ConfirmBox = true; } else { logout = true; }; if (logout) { if (ConfirmBox) { // Open a new window so that the parent window // can continue to go where the user intended window.open('/logout.taf?MDI=true','CloseMe','innerHeight=100,innerWidth=100,location=no,menubar=no,personalbar=no,resizable=no,screenX=100,screenY=100,scrollbars=no,status=no,toolbar=no,width=100,height=100,dependent=yes') } else { // in this window document.location.href= ''; }; return true; } else { return false; }; }; }; Still not quite foolproof, but it
works more often than not.
Anthony -
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf |
- Re: Witango-Talk: best practice for uploading from f... Dan Stein
- Re: Witango-Talk: best practice for uploading f... Roland Dumas
- Re: Witango-Talk: best practice for uploading from f... Roland Dumas
- RE: Witango-Talk: best practice for uploading f... Scott Cadillac
- RE: Witango-Talk: best practice for uploading f... Dave Shelley
- Re: Witango-Talk: best practice for uploadi... Roland Dumas
- RE: Witango-Talk: best practice for upl... Dave Shelley
- Re: Witango-Talk: best practice for uploadi... Roland Dumas
- Witango-Talk: Variable Timeout solution Tan Lim Soon Fu
- Re: Witango-Talk: Variable Timeout ... Jonah Simpson
- Re: Witango-Talk: Variable Timeout ... Anthony M. Humphreys
- Re: Witango-Talk: Variable Tim... Tan Lim Soon Fu
- RE: Witango-Talk: Variable... Scott Cadillac
- Re: Witango-Talk: best practice for uploading f... Roland Dumas
- RE: Witango-Talk: best practice for uploading from f... Storey, Paul
- Re: Witango-Talk: best practice for uploading f... Roland Dumas
- RE: Witango-Talk: best practice for uploading from f... Storey, Paul
- Re: Witango-Talk: best practice for uploading f... Roland Dumas
- RE: Witango-Talk: best practice for uploading from f... Ted Wolfley
- Re: Witango-Talk: best practice for uploading f... Roland Dumas
- RE: Witango-Talk: best practice for uploading from f... Wilcox, Jamileh (HSC)
