Using onUnload will execute on EVERY page that the user leaves though
.... this is a similar problem to what James was talking about
yesterday. There is NO way to know (using javascript anyways) if the
user clicks away from the domain, or to another page IN the domain, so
if you use onUnload, then the survey page will popup on every single
link you click on (whether it's away from the domain or not). There is
also no way to tell if they just go to the address bar and type in
another address! Also, I dunno what this onClose function is ..... I
have only ever seen it mentioned as a NN6+ specific thing (see
http://www.mauvecloud.net/events/), and it doesn't even work in Netscape
!!! (I have just re-tested my own page using an BODY onClose event in IE
& NN, and it didn't work in either). You do mean like a BODY onClose,
and not window.close() ??? I was trying to do this recently as well, so
if anyone can come up with a way of telling when a person leaves the
domain, or closes the browser window, I would be interested to know !!
The only way around it I can think of is to use a hidden frame or popup
another window which constantly checks that the window that opened it is
still in your domain, and still open, and if not, then IT pops up the
survey window (and closes itself maybe). This is not really worth doing
for my uses, but might be of use to you. HTH !!!


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: 15 August 2002 10:51
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] Survey Launching
> 
> 
> 
> use onUnload as well as onClose.
> 
> estimate: time to do the survey + (time to put the function 
> in all your sites * number of sites)
> 
> 
> Duncan Cumming
> IT Manager
> 
> http://www.alienationdesign.co.uk 
> mailto:[EMAIL PROTECTED]
> Tel: 0141 575 9700
> Fax: 0141 575 9600
> 
> Creative solutions in a technical world
> 
> ----------------------------------------------------------------------
> Get your domain names online from: http://www.alienationdomains.co.uk
> Reseller options available!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> 
> 
>                                                               
>                                                                     
>                     "Robertson-Ravo, Neil (REC)"              
>                                                                     
>                     <[EMAIL PROTECTED]        To:   
>   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>     
>                     dexpo.com>                          cc:   
>                                                                     
>                                                         
> Subject:     [ cf-dev ] Survey Launching                      
>             
>                     08/15/02 10:43 AM                         
>                                                                     
>                     Please respond to dev                     
>                                                                     
>                                                               
>                                                                     
>                                                               
>                                                                     
> 
> 
> 
> Hi,
> 
> I have been asked to investigate the possibility of adding 
> the functionality of an on_close survey to all our sites.  It 
> would be a generic survey across them all.
> 
> This should behave as follows.
> 
> 1) activate when the user leaves the domain - i.e. clicks 
> some where else.
> 2) activate when the user closes the site down.
> 
> How easy is this to achieve?  Obviously the onClose is pretty 
> straightforward but what about the domain etc.... Any 
> ideas/thoughts.....
> 
> How long would it take to implement this....(1 hour, 2 
> hours....etc...?)?
> 
> Neil
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 


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


Reply via email to