Home > Domino Tips > Administrator > Web > Redirect Web users to any content with one page
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WEB

Redirect Web users to any content with one page


Robert Weeks
05.28.2002
Rating: -2.60- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Cut roll out costs for Web shortcuts by using Javascript in a page to redirect the Web user using input from the browser location. The code below is an edited version of what we use on our own Website. We have to set up redirection URLs to be used in marketing. These shortcuts bring the user to a specific page regarding a special promotion or new product information.

Using the URL:*
www.domain.com/Website/Webpages.nsf/Main_Frameset?Openframeset&Query=MaySpecial

Opens the Web page 'MaySpecial' in the Main Frameset. If you leave out the pagename or just open the frameset, the homepage comes up as the default.

*Use the Page with the code below in the data area of the frameset you create.

Code

In HTML Head Content:
"<script language="Javascript"> function Redirection(){ var
baseurl="http://www.domain.com/Website/Webpages.nsf/pages/"; var
qs=top.location.href; var breakhere=qs.indexOf("&query=")+7; var
addurl=qs.substring(breakhere, qs.length); if ((breakhere<=7)||
(breakhere==qs.length)){addurl="HomePage+2002"}; var resurl=baseurl+addurl;
var t="_self";window.location.replace(resurl); }</script>" In Onload: Redirection();

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Web
Display SharePoint data in a Lotus Notes Web application with Ajax
Top 10 Lotus Notes/Domino administration tips of 2008
How to create a dynamic SVG graph using a Lotus Notes agent
Hosting multiple Lotus Domino servers at one IP address without a VPN
Upgrading and patching Firefox: Security considerations for administrators
Admin2005 Learning Guides
Making old, new flavors of Domino SSO work
A fun site, with serious code
Creating corporate welcome pages with Lotus Notes
Domino Web traffic analyzers

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts