It might work When I first tested PurgeOnClose.taf with calling it as a popup window Witango Server didn't like it, as a matter of fact it crashed the server. I think it had something to do with the fact that there was now where for the result html to go
I guess if you wrapped the code in <@EXCLUDE> </@EXCLUDE> so that there is no output from the taf, kind of like a taf you would use in a cron job it might work. But all the code did was do a <@PURGE> it could have had some text. I guess also <@PURGERESULTS> at the end might do it. Give it a try and let us know ;-) Ben Johansen - http://www.pcforge.com -Authorized WiTango Reseller http://www.pcforge.com/WitangoGoodies.htm -Authorized Alt-N Reseller http://www.pcforge.com/AltN.htm -----Original Message----- From: Trevor Green [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 11:13 PM To: [EMAIL PROTECTED] Subject: RE: Witango-Talk: Purge user variable on window closing Could one use this method to generally log out a user when they close their browser window? In other words could one put a <body onUnload="doPurge();"> in every page's header and then call some general taf that would clear that user's user variable when they close the window? Regards Trevor -----Original Message----- From: Ben Johansen [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 10:48 PM To: [EMAIL PROTECTED] Subject: RE: Witango-Talk: Purge user variable on window closing Ok Place these files in the root 1. Run the TestPurge.taf 2. click on the "Call View" (will show the user var value) 3. click on the "Call popup" (will show the user var value in popup) 4. click close or press window X in popup window 5. click on the "Call View" (will show the user var empty this time) Ben Johansen - http://www.pcforge.com Authorized Witango & MDaemon Reseller Available for Witango Developement -----Original Message----- From: Fogelson, Steve [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 12:01 PM To: Witango User Group (E-mail) Subject: Witango-Talk: Purge user variable on window closing I use a popup window in an application. The popup window is a taf that creates user variables. I need to use user variables in the popup as it creates a few large arrays and the taf branches back to itself, so I only want to create the arrays once. Is there a way to purge specific user variables when a popup window is closed? FYI: the parent window would still be open, but may be a different taf than the original one that opened the popup. So I believe the popup would need to purge the user variables when it is closed. Thanks Steve Fogelson Internet Commerce Solutions ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
