Progress bar dependant on page
Posted 18 August 2006 - 06:29 PM
I can do this with a bunch of set variables, but then, in total disregard of how long the page might take to load, it will always take the same amount of time.
What I need is that the bar goes from 0% at the start to 100% when the page has completed loading, whether that takes 1 second or 30 seconds.
So that would mean that if the page will take longer to load (say a heavy search query) the progress bar will fill up more slowly accordingly (like with your browser).
Currently I can only make it last for the same amount of time using a loop and then a flush.
Posted 18 August 2006 - 07:46 PM
Posted 20 August 2006 - 04:16 PM
Basicly all I need is some kind of value which I can use to modify the amount of time for the bar to fill up.
(basicly some kind of indication of how long it might take to load the current page).
Posted 20 August 2006 - 04:20 PM
Posted 20 August 2006 - 04:49 PM
Posted 23 August 2006 - 04:41 PM
Posted 23 August 2006 - 09:13 PM
The browser loading bar does seem dependant on page loading time so there must be something.
That's because it knows how much data is in/on the page...it's a part of the packet information.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users