visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: PHP :: progress bar during downloading file.


By: mohammed2raja India  Date: 27/09/2008 06:39:30  English  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 English  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 English  Type : Comment
force close

Do register to be able to answer

EContact
browser fav
page generated in 103.436950 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page