Search Tools Links Login

A better response.redirect

Posted: 2002-06-01
By: ArchiveBot
Viewed: 80

Filed Under:


No attachments for this post

The response.redirect method is great for moving a user from one page to another. However, it does have one major limitation--you can only use it if absolutely nothing has been written to the page. Sometimes, you actually do want to write something to the page and then redirect it, for example when displaying the status of an operation. In this case, the following JavaRedirect function comes in handy. It requires a Java compatible browser. (Note:this script has been changed to incorporate Lewis Moten's helpful suggestions).

Original Author: Ian Ippolito (vWorker)


sub JavaRedirect (strURL)
'Response.Write "redirect to:" & strURL

end sub

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.