Languages :: PHP :: progress bar during downloading file. |
|||
| By: mohammed2raja |
Date: 27/09/2008 06:39:30 |
Points: 20 | Status: Answered Quality : Excellent |
|
I hv design a progress bar, the method start_progrss() starts the progress bas and the method end_progrss() stops the progress bar. I develop two file 1. loginfile.php and 2. downloadfile.php My loginfile.php contain two text fields user name and password. /*********loginfile.php ************/ function mysubmit(){ //code start_progress(); // here i start progress bar window.location.href = "downloadfile.php?getLoginName=" + getLoginName+"&getLoginPass="+getLoginPass; //code } Now my problem is how i stop progress bar by calling stop_progress() once the user name and password is verified. Please give any suggestion. |
|||
| By: VGR | Date: 27/09/2008 08:31:50 | Type : Answer |
|
| Hello, I have to say that progress bars are one of my worst nightmares 8-) I even can't simply design one for a website I'm working on, because of some technical contraints. In your case, the idea is to make the LOADED file stop the progress bar when it's loaded. There is an attribute on the BODY tag (UnLoad, UnOnload and such). You've a second possibility : use the property "document.ready" in javascript You've a third possibility : put a script tag at the END of the loaded page, which turns the progress bar off when executing. Good luck 8-)) You may also read http://designaesthetic.com/2007/07/06/how-to-load-and-unload-google-maps-without-using-the-body-tag/ |
|||
| By: OpConsole | Date: 03/04/2011 19:00:04 | Type : Comment |
|
| force close | |||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








