I implemented this on a previous project. Basically, you have to add javascript to <body onunload=""> that calls up an exit survey window. BUT you have to make sure the window doesn't pop up when they click on a link or submit a form.
So you add code that checks (popup == true) before popping up to see if there should be a popup. Then, for all your <a> links, add onClick="popup=false;" to stop the popup window before the new location. It's a pain to do this by hand, so I used cfcontent to save the content of the page and defined UDFs which searched the HTML content and inserted the appropriate events into each <a> and <form> tag. > ----- Original Message ----- > From: "Robertson-Ravo, Neil (REC)" > <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Thursday, August 15, 2002 5:00 AM > Subject: Survey Launching > > > 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 ===== I-Lin Kuo Macromedia CF5 Advanced Developer Sun Certified Java 2 Programmer __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

