I'd like you guys to solve a coding situation here. And this is what I have at the moment: <meta http-equiv="refresh" content="0;url=http://www.mydomain.com/download_file.zip"> <script language="javascript"> var exitsplashalertmessage = '***************************************\n\n > > > W A I T < < <\n\n CLICK THE ***CANCEL*** BUTTON\n on the NEXT Window for Something\n VERY Special!\n\n************************************** *';
Delayed Execution of Javascript
7
I'd like you guys to solve a coding situation here. And this is what I have at the moment:
So basically I have a download page which is installed with a exitsplash.php(a piece of code that pops up message, and redirection) and a meta redirect script that executes the file to be downloaded in 0 seconds when the user lands on the page.
The problem is that, when these 2 pieces of codes are installed at a page, when the download executes, the exit message pops up (which is not what I wanted). The exit message is suppose to pop up when the user leaves the page.
So what I can think of right now is to delay the exitsplash.php for 5 seconds or so? and when the user has downloaded the file(which the message won't pop up since it's disabled for 5 seconds), the exitsplash.php goes back normal.
Is it possible to do this?
Thanks
So basically I have a download page which is installed with a exitsplash.php(a piece of code that pops up message, and redirection) and a meta redirect script that executes the file to be downloaded in 0 seconds when the user lands on the page.
The problem is that, when these 2 pieces of codes are installed at a page, when the download executes, the exit message pops up (which is not what I wanted). The exit message is suppose to pop up when the user leaves the page.
So what I can think of right now is to delay the exitsplash.php for 5 seconds or so? and when the user has downloaded the file(which the message won't pop up since it's disabled for 5 seconds), the exitsplash.php goes back normal.
Is it possible to do this?
Thanks
- lordspace
- [1] reply
- eswariseo
- [1] reply
- Dan Grossman
- John Ayling
- andy789
Next Topics on Trending Feed
-
7