nice, very nice.... ta muchly.
-----Original Message----- From: Steve D [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 12:19 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Survey Launching Yarrrr ! Good point there Giles, just tested it myself to make sure, and this will work (lauches the survey window whenever an external link is clicked on, or typed into the address bar, or browser window is shut) ... <HTML> <HEAD> <TITLE>TEST</TITLE> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> var Internal=""; function DoSomething() { if (Internal!="yes") { alert("Survey Launched"); } } </SCRIPT> </HEAD> <BODY onUnload="DoSomething()"> <A HREF="test2.html" onClick="Internal='yes'">Internal link in here</A><BR> <A HREF="http://www.msn.com">External link in here</A><BR> </BODY> </HTML> ... nice one ! Just replace the alert() with a window.open(), or any other function you want. Does require you having the javascript at the top of every page, and every single internal link must have the onClick event added. But it works ! Yay :^) > -----Original Message----- > From: Giles Roadnight [mailto:[EMAIL PROTECTED]] > Sent: 15 August 2002 11:58 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] Survey Launching > > > Exactly my point if you don't use the onUnload event Handler > you will miss these things. > > > Giles Roadnight > http://giles.roadnight.name > > > -----Original Message----- > From: Steve D [mailto:[EMAIL PROTECTED]] > Sent: 15 August 2002 11:53 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] Survey Launching > > If you were just clicking on links within your site, then you > could use NORMAL links for internal stuff, and simply do ... > > <a href="http://www.AnotherDomain.com" onClick="LaunchSurveyPopup()"> > > ... for links that took you to another domain. BUT, you still > wouldn't be able to launch the survey if the typed in another > address manually, or if the closed the browser window. > > > > -----Original Message----- > > From: Giles Roadnight [mailto:[EMAIL PROTECTED]] > > Sent: 15 August 2002 11:41 > > To: [EMAIL PROTECTED] > > Subject: RE: [ cf-dev ] Survey Launching > > > > > > Doesn't this mean that you have to put something in all of > > the links in the site so that the page knows when the user is > > navigating somewhere else in the site. Perhaps something like > > > > <a href="internalLink" onClick="internalLinkClicked = true;"> > > > > so if the variable is true the survey is not launched. > > > > > > Giles Roadnight > > http://giles.roadnight.name > > > > > > -----Original Message----- > > From: Robertson-Ravo, Neil (REC) > > [mailto:[EMAIL PROTECTED]] > > Sent: 15 August 2002 10:50 > > To: '[EMAIL PROTECTED]' > > Subject: RE: [ cf-dev ] Survey Launching > > > > Cheers Duncan....... > > > > > > > > Neil > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]] > > Sent: 15 August 2002 10:53 > > To: [EMAIL PROTECTED] > > Subject: Re: [ cf-dev ] Survey Launching > > > > > > > > that should of course say > > > > estimate: time to do the survey + (time to put the function > > in all pages in a site * number of sites) > > > > i'd guess not that long. extended find and replace "<body" > > with "<body onUnload=blah onClose=blah". > > > > > > 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! > > > ---------------------------------------------------------------------- > > > ---------------------------------------------------------------------- > > > > > > > > > > duncan.cumming@alienationde > > > > sign.co.uk To: > > <[EMAIL PROTECTED]> > > cc: > > > > 08/15/02 10:50 AM > > Subject: Re: > > [ > > cf-dev ] Survey Launching > > Please respond to dev > > > > > > > > > > > > > > > > > > > > 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] > > > > > > -- > > 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] > > > > > -- > 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]