At 11:41 PM 2/14/2003 -0500, you wrote: >Here you go: > ><!--- Initial Message ---> ><p><b>Please wait</b></p> > ><!--- Initially display a blank gif ---> ><img name="meter" src="../images/PercentBlank.gif"> > ><!---Flush the page buffer ---> ><cfflush> > ><!--- Loop from 0 to 25 and 25 to 50 to 75 to 100 ---> ><cfloop from="0" to "100" step="25" index="I">
should be from="0" to="100".... Does anyone know how to solve the two outstanding issues with using this as an upload progress bar? As far as I can tell there still needs to be a way to obtain the filesize before the upload begins to calculate a completion percentage. And secondly, to my knowledge cffile does not return control to the calling page until the file is completely uploaded, preventing any type of looping to monitor file size. The CFFLUSH stuff is easy and I have used it in the past to display an animated "please wait" gif. Any ideas on how to solve these two problems? Is there some javascipt code to obtain the filesize of the file specified in a file form field? If so, it certainly wouldn't be that difficult to set the filesize as the value of a hidden form field. Hmmmmm.... Andrew Golden ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

