Feb 20, 2004 #1 stryan Programmer Feb 20, 2004 3 JM I'v been stuck trying to redirect an asp page using VBScript after a few seconds, i'd realy appreciate if someone can solve it for me.
I'v been stuck trying to redirect an asp page using VBScript after a few seconds, i'd realy appreciate if someone can solve it for me.
Feb 20, 2004 #2 Bastien Programmer May 29, 2000 1,683 CA clientside or serverside? server is response.redirect ("somepage.extension" Bastien Any one have a techie job in Toronto, I need to work...being laid off sucks! Upvote 0 Downvote
clientside or serverside? server is response.redirect ("somepage.extension" Bastien Any one have a techie job in Toronto, I need to work...being laid off sucks!
Feb 20, 2004 Thread starter #3 stryan Programmer Feb 20, 2004 3 JM Server side , and i need it to delay for a few seconds Upvote 0 Downvote
Feb 20, 2004 #4 Bastien Programmer May 29, 2000 1,683 CA need to use client side then as you can't 'push' a page...now you need to decide if its js or vbs to fire the event... JS is more universal VBS only works for IE Bastien Any one have a techie job in Toronto, I need to work...being laid off sucks! Upvote 0 Downvote
need to use client side then as you can't 'push' a page...now you need to decide if its js or vbs to fire the event... JS is more universal VBS only works for IE Bastien Any one have a techie job in Toronto, I need to work...being laid off sucks!
Feb 20, 2004 1 #5 YNOTU Technical User Jun 21, 2002 749 US [tt]Pretty much self explanatory ************************ <HEAD> <SCRIPT LANGUAGE="JavaScript"> redirTime = "15000"; redirURL = "your_page.asp"; function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); } </script> <!-- STEP TWO: Insert the onLoad event handler into your BODY tag --> <BODY onLoad="redirTimer()"> ************************ The script redirects in 15 seconds [tt] Upvote 0 Downvote
[tt]Pretty much self explanatory ************************ <HEAD> <SCRIPT LANGUAGE="JavaScript"> redirTime = "15000"; redirURL = "your_page.asp"; function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); } </script> <!-- STEP TWO: Insert the onLoad event handler into your BODY tag --> <BODY onLoad="redirTimer()"> ************************ The script redirects in 15 seconds [tt]