At 08:59 AM 4/28/2005, Cees Hek wrote:
On 4/28/05, Wojciech Pietron <suppressed> wrote: > But I think, that there are some different needs for such a progress > bar. For example, I have same queries that last about 20 seconds and the > user doesn't know what is going on. I realize, that the script will > never know, how long it takes to do such a task. But I rougly do and > would like to give a user such a progress bar that would be filled up > systematicly for a specified amount of seconds given by me. If the query > is ended earlier, the bar would fill quickly till the end. If the query > is extended in time for some reasons, the bar is kept 100% filled for a > few seconds longer than it used to be. Sure, that sounds very reasonable. The uploadmeter itself is just a bunch of numbers and are rendered by a stylesheet. You should be able to change the stylesheet to make it look however you like. And as for the server side implementation, I'm going to try and abstract this out so that you can hook into it in different ways. One way being the upload monitor, but in your case it would be a simple response timer that could be updated intermitently by your code. I haven't really thought about an API for this yet or a namespace for that matter. I don't think it needs to be specific to CGI::Application, but I'll definately make it easy to use in CGI::Application. I'd welcome any suggestions (including suggestions to take this off list if it is too off-topic for CGIApp). Cees ps someone that tried the uploadmeter this morning is caught in an endless update loop. I am getting a request per second from an upload that has already completed. This is definately my fault, as I probably missed something in the JavaScript, but I thought I would mention it anyway. It may have been caused by someone cancelling the upload midway through.
I might have done that, I was trying to pick a file that didn't have anything sensitive to test with in it, but I ended up with was a fairly large file, so I did cut it short. Sorry.. Very nice looking BTW..
Eric
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.