Well, thanks to a miserable day outside, and a few hours that I probably should have spent doing real work, I made an attempt at doing the upload meter today.
It still needs a bunch of work to clean things up, but it is in a working state. I think it can easily be abstracted into a module that can then be used from within CGI::Application. I did run into a few annoying hurdles along the way. In order to use the upload_hook in CGI.pm, I needed to pass the hook information when the CGI object was created. This meant overriding 'cgiapp_get_query' and creating a custom CGI object. I don't know how well that will work in a plugin! The surprising thing is how easy it was to setup the AJAX stuff, that took all of 30 minutes of searching the internet, reading and copying a couple simple examples. The tough stuff was getting the upload_hook stuff working properly. Anyway, you can try it out here: http://cees.crtconsulting.ca/perl/examples/uploadmeter/ If anyone wants a look at the perl code, send me a note, and I'll post it as is. Otherwise you will have to wait for another rainy day when I can finish things off properly :) Cheers, Cees On 4/23/05, Mark Stosberg <[EMAIL PROTECTED]> wrote: > This looks like like a fun project for someone to port to > CGI::Application: > > http://sean.treadway.info/demo/upload > > Written in Ruby and using an "AJAX" backend, it's a demonstration of re-usable > software to provide a progress bar and dynamic stats updates for a file upload > field. > > The video linked to from there gives you an idea of what the Ruby interface > looks like for the end developer. > > This seems like a nice function to have available to plug into a > CGI::Application as well. :) > > Mark > > -- > http://mark.stosberg.com/ > > --------------------------------------------------------------------- > Web Archive: http://www.mail-archive.com/[email protected]/ > http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
