Thanks...done the meta refresh a lot, just usually at the top of a doc, not
after a DB input, so I just wasn't sure if that was how or if you add some
delay to a redirect. Cool..thanks.


Dian D. Chapman
Technical Consultant, Instructor
Microsoft MVP & MOS Expert Certified

Free MS Tutorials: www.mousetrax.com/techtrax
Free Word Tips & Tricks eBook: www.mousetrax.com/books.html
Learn VBA the easy way, thru video! www.mousetrax.com/techcourses.html


-----Original Message-----
From: Costanzo, Ray [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 11:46 AM
To: [EMAIL PROTECTED]
Subject: RE: [ASP] Delay a Redirect?

Hi Dian ~,

You can do a meta refresh or a javascript redirect like so:

Meta refresh:
<META HTTP-EQUIV=Refresh CONTENT="10;
URL=http://www.example.com/something";>  


Javascript:
<script type="text/javascript">
setTimeout("location.href='/something'",10000)
</script>

location.href will take the person to the new url.  location.replace will
also take the person to the URL but it will replace the location, meaning
that going back one page in history will NOT take the person to the thank
you page.

The numeric value for setTimeout is milliseconds.

In addition to doing this, you should also do a "If this page doesn't
automatically redirect in 10 seconds, click here..." for those psychos out
there who disable metarefreshes and active scripting.

When I've done this in the past, I've used both a meta refresh and the
javascript.

Ray at work



> -----Original Message-----
> From: Dian Chapman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 12:03 PM
> To: Group - ASP
> Subject: [ASP] Delay a Redirect?
> 
> Hi folks...
> 
> Please...what do I need to add to a redirect to delay it for a couple 
> seconds?
> 
> After entering data, I'd like the confirmation page to display "Thank 
> you"
> before it shoots them back to another page. Obviously, with just a 
> redirect, it just shoot, sans the appreciation.
> 
> TIA...
> 
> Dian ~
> 
> 
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> ---------------------~--> Buy Ink Cartridges or Refill Kits for your 
> HP, Epson, Canon or Lexmark Printer at MyInks.com.  Free s/h on orders 
> $50 or more to the US & Canada.
> http://www.c1tracking.com/l.asp?cid=5511
> http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/17folB/TM
> --------------------------------------------------------------
> -------~->
> 
> --------------------------------------------------------------
> -------    
>  Home       : http://groups.yahoo.com/group/active-server-pages
> ---------------------------------------------------------------------
>  Post       : [EMAIL PROTECTED]
>  Subscribe  : [EMAIL PROTECTED]
>  Unsubscribe: [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


**********************************************************************
The information contained in this e-mail message is intended only for the
personal and confidential use of the recipient(s) named above. Distribution,
publication, or retransmission of this message is strictly prohibited. This
message may be a bank to client communication and as such is privileged and
confidential. If the reader of this message is not the intended recipient or
an agent responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is strictly
prohibited. If you have received this communication in error, please notify
us immediately by e-mail, and delete the original message.

The sender of this e-mail specifically "opts-out" of the Electronic
Signatures and Global and National Commerce Act (E-Sign) and any and all
similar state and federal acts. Accordingly, but without limitation, any and
all documents, contracts, and agreements must contain a handwritten
signature of the sender to be legal, valid, and enforceable.

**********************************************************************



------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy
Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer
at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/17folB/TM
---------------------------------------------------------------------~->

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links



 


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.672 / Virus Database: 434 - Release Date: 4/28/2004
 


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/17folB/TM
---------------------------------------------------------------------~->

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to