Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2020-11-17 22:26:19
- bici
- Member
- From: vancouver
- Registered: 2004-02-24
- Posts: 1,789
- Website
delayed URL Redirects with a message display for 10 seconds
Not strictly a TxP how to …. but what is the best way to to direct from one url to another and display a brief 10 second message before heading to the new URL? Via .htaccess? some Php mojo? or a combo? cannot find any definitive How To via a search. any tips? thanks in advance
…. texted postive
Offline
#2 2020-11-17 22:31:28
- jakob
- Admin
- From: Germany
- Registered: 2005-01-20
- Posts: 4,036
- Website
Re: delayed URL Redirects with a message display for 10 seconds
Hi bici,
Some options are discussed here (stack overflow) using meta refresh with a seconds delay or different javascript timeout / wait scripts. Chris Ferdinandi also gives a good how-to on performing an action after a set amount of time using vanilla javascript.
TXP Builders – finely-crafted code, design and txp
Offline
#3 2020-11-23 01:48:59
- bici
- Member
- From: vancouver
- Registered: 2004-02-24
- Posts: 1,789
- Website
Re: delayed URL Redirects with a message display for 10 seconds
jakob wrote #326893:
Hi bici,
Some options are discussed here (stack overflow) using meta refresh with a seconds delay or different javascript timeout / wait scripts. Chris Ferdinandi also gives a good how-to on performing an action after a set amount of time using vanilla javascript.
Thanks. i did as suggested and it worked out fine. 4 days later the client changed their minds and wanted the webpage <dead> … so all for naught, but i learned something nifty. <silver lining>
…. texted postive
Offline
#4 2020-11-23 10:14:48
- phiw13
- Plugin Author
- From: Japan
- Registered: 2004-02-27
- Posts: 2,233
- Website
Re: delayed URL Redirects with a message display for 10 seconds
bici wrote #326983:
[…] 4 days later the client changed their minds and wanted the webpage <dead> … so all for naught, but i learned something nifty. <silver lining>
LOL. Happens to me as well – regularly even. Usually it last a little longer though. I learned a few .htaccess
tricks on the way.
Where is that emoji for a solar powered submarine when you need it ?
Offline