Web Page Redirection - Demo and Samples

Simple but effective automation with Meta tags. When applied to a Lotus Domino database, can be effective when processing forms and assessing visitors to a site.

Code explained

Meta tag Refresh code

The code above is the basic structure that refreshes the current page after a set amount of seconds. Place the code in the HEAD section of the HTML code. Sample 1 opens a new page, waits 5 seconds and then redirects to another page, using the Meta tag code above.

With a domino database, this code can be used in a WebQuerySave agent. A form can be submitted, and a WebQuerySave agent can process the submission for workflow or any other purpose. Once the form has been processed by the agent, the Meta Refresh can be written in a PRINT statement, and automatically redirect the user to a selected view, form or another static page as required. See Sample 2 for a simple form (and some javascript validation) that can be submitted and then redirected after the WebQuerySave agent has processed it.

Both these samples can be downloaded here as a Lotus Notes nsf file