Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: detection of what page a user comes from


Message #1 by "Eric Van Camp" <eric@a...> on Wed, 28 Feb 2001 11:23:39
hi,

i want to detect from which page a user comes from to perform an action..

so if user comes from page "A" i need to perform action 1, otherwise i 

need to perform action 2!

can anyone suggest me ?

thanks!

Eric
Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Wed, 28 Feb 2001 11:25:28 -0000
request.servervariables("HTTP_REFERER")



-----Original Message-----

From: Eric Van Camp [mailto:eric@a...]

Sent: Wednesday, February 28, 2001 11:24 AM

To: ASP Web HowTo

Subject: [asp_web_howto] detection of what page a user comes from





hi,

i want to detect from which page a user comes from to perform an action..

so if user comes from page "A" i need to perform action 1, otherwise i 

need to perform action 2!

can anyone suggest me ?

thanks!

Eric

Message #3 by "Wally Burfine" <oopconsultant@h...> on Wed, 28 Feb 2001 15:20:06 -0000
Eric,

Try this type of thing:



<SCRIPT LANGUAGE=JAVASCRIPT>

<!-- Begin

var wherefrom = document.referrer;

if (wherefrom.indexOf('www.DatPlace.com') != -1)

window.location.href = 'http://www.DatPlace.com/DatPlace1/';

if (wherefrom.indexOf('www.DisPlace.com') != -1)

window.location.href = 'http://www.DisPlace.com/DisPlace2/';

//--> End

</SCRIPT>



Regards,

Wally





>From: "Eric Van Camp" <eric@a...>

>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>

>To: "ASP Web HowTo" <asp_web_howto@p...>

>Subject: [asp_web_howto] detection of what page a user comes from

>Date: Wed, 28 Feb 2001 11:23:39

>

>hi,

>i want to detect from which page a user comes from to perform an action..

>so if user comes from page "A" i need to perform action 1, otherwise i

>need to perform action 2!

>can anyone suggest me ?

>thanks!

>Eric




  Return to Index