Examples include:
1. Having the user register with the site
2. Having the user submit feedback.
But when the user wishes to return to their original location, they usually
have to click the 'Back' button several times and hope they end up where they
want to be!
Wouldn't it be great if you could grant them that 'return' capability with a
simple bit of code?
There is a simple JavaScript solution however it is not supported in IE3:
[history.go(-the Number of screens you want the browser to back up)]
Here's a cool and easy way to make it work regardless of the browser:
Assume that our Domino site has a hot spot called "Feedback" that is available
from any location in the site. When clicking on the "Feedback" link the user
will compose the Feedback form. You, the developer must include a computed
field called HTTP_REFERER, which has the default formula:
HTTP_REFERER
Notes will automatically put the HTTP_REFERER CGI variable value into
this field when the user composes the Feedback.
The $$Return field will look something like this:
__________________________________________________________________
Ref := HTTP_REFERER ;
Thanks := "<p><h2>Feedback Submitted:</h2></p>" + "
<h4>Thank you for taking
the time to complete this form." + "</h4>
";
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
GoBack := "<A HREF="+Ref+">Click here to go back to your original location</A>";
Thanks + GoBack
___________________________________________________________________
That's all !
Zoe Nadler Certified Lotus Professional - Principal in Web Development
ZNet, Inc.
zoezev@aol.com
This was first published in November 2000