This is a discussion on "redirecting page...." within the Classic ASP section. This forum, and the thread "redirecting page.... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
redirecting page....
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
redirecting page....
HOW TO BUILD A REDIRECTING PAGE?
I have login page that will bring the user to my default.asp page login.asp--->default.asp Instead of this flow, i want this flow: login.asp-->welcome.asp-->default.asp the welcome .asp page will be displays to the user (in 5 second) before the page redirect to the default.asp page
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|
|
#2
|
|||
|
|||
|
well you can easily do a META refresh...
|
|
#3
|
|||
|
|||
|
or you can do this...
|
|
#4
|
|||
|
|||
|
woah, thanks for the clarification Court Jester... :wink:
|
|
#5
|
|||
|
|||
|
You know me.. I'm always here to Clarify :wink:
|
|
#6
|
|||
|
|||
|
Court Jester, your example wont work dude...
|
|
#7
|
||||
|
||||
|
you're right there smokie
|
|
#8
|
||||
|
||||
|
yes... two equals signs... also... for compliance with XHTML, you would need to end the tag with />
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#9
|
|||
|
|||
|
wow no one said this to Sirkent... Hrmmm Wonder why...
|
|
#10
|
|||
|
|||
|
I believe that what you're looking for is a page that takes advantage of the setTimeout meta tag. The following would be in welcome.asp. Notice that you don't need any asp code for this.
<span style="color:red"><head> <meta http-equiv="refresh" content="5; url=default.asp%>"> </head></span id="red"> or you can accomplish the same thing using a javascript function, but for compatibility i'd stick to the meta tag. <span style="color:red"><script language="JavaScript" type="text/JavaScript"> function doredirect() { window.location.href='default.asp%>'; } </script> </head> <body onLoad="setTimeout('doredirect()',5000)"> </body></span id="red"> If you wanted the welcome page to finish displaying before the 5 second period kicks off, you can put the meta tag at the end of your document. It does not need to be in the <span style="color:red"><head></span id="red"> section of your page. Hope that helps. Kinj |
|
#11
|
|||
|
|||
|
rofl, didn't even see the other replies. What a numpty :razz:
|
|
#12
|
|||
|
|||
|
kinjiro, why didnt you see the other replies? because of the banner ad?
|
|
#13
|
|||
|
|||
|
It happens to the best of us... lol... But yes those banner ads are in a terribbly anoying spot.
|
|
#14
|
|||
|
|||
|
well thanx all....
so, just a thought, whats the different between metatag and javascript(redirecting page...) which one is better?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#15
|
||||
|
||||
|
meta tag because not everybody has javascript enabled...
|
|
#16
|
|||
|
|||
|
You can also use a server-side language to redirect which uses the browser headers, can't you? Surely that would be the best method all round, or am I really complicated issues?
|
|
#17
|
|||
|
|||
|
You are right Sirkent, but monie wanted a time delay of 5 seconds which is not possible with an ASP server side solution.
|
|
#18
|
|||
|
|||
|
actually you can build one using asp scripting, but the only way I know how to do it is very lengthy in coding.
|
|
#19
|
|||
|
|||
|
lol, c'mon then, lets see it!
|
![]() |
| Tags |
| redirecting, page |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Redirecting | Monie | Hosting & Domains | 13 | Jan 25th, 2008 00:54 |
| header not redirecting | pilch | PHP Forum | 4 | Nov 7th, 2005 20:24 |
| [SOLVED] redirecting | Anonymous User | PHP Forum | 1 | Feb 7th, 2005 23:00 |
| Redirecting Problem | Amari | Classic ASP | 4 | Aug 16th, 2004 17:17 |