Well, the only way I can think of doing this without having to alter ANY
of your links AT ALL is something like ...

 - Have a BODY onUnLoad function on every page to launch your survey
window (so that the survey page launches when you exit every page)
 - On your survery pop-up page have some javascript to close the window
if it's an internal link ...
   if (window.opener.location.host=="your.domain.com") {
     window.close();
   }

... that way the survey pop-up would close itself if the opening page is
still in your domain. The only problem would be that the user would see
the survey page flash on, then off again, but you could get around this
as well by opening the survey window off-screen (e.g.
window.open('survey.cfm','SurveyWindow','top=2000,left=2000')   ), and
then using window.moveTo() in your survey page so that if it doesn't
close itself, it moves itself somewhere where the people can see it.

> -----Original Message-----
> From: Robertson-Ravo, Neil (REC) 
> [mailto:[EMAIL PROTECTED]] 
> Sent: 07 October 2002 10:34
> To: '[EMAIL PROTECTED]'
> Subject: [ cf-dev ] onUnload Problem
> 
> 
> Okay, following on from the problem last week of launching a 
> window via onUnload, I am looking for suggestions/ideas on 
> how to get this working!
> 
> I cannot append the internal=yes type method on each link as 
> there are too many and there is a lot of HTML being stored 
> within the Datasource (I know, I know, this is a 3rd party 
> product...).  I can obviously get a popup to appear via 
> onUnload no problem, but it will also appear when I click a 
> link as the page is still effectively unloading.
> 
> I need to get it to only spawn a window via onUnload when the 
> browser is closed and not when any other link is clicked etc..
> 
> I am not sure it can be done with the restrictions I have, 
> but I am open for suggestions!
> 
> Thanks
> 
> N
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to