If filesize==0, push a page with a meta tag redirect or a JS timeout that reloads the page after some number of seconds. If filesize>0, push the contents instead.
--Ben Jeff Waris wrote: > I kick a process off to create a report that is converted to a PDF using > CFEXECUTE. The report is not created instantaneously and may take some time > depending how many pages there are. Once created, the PDF sits in a > directory. This part is working fine. > > As the report starts to run. It creates a 0 byte PDF file. It then sits in > the directory at 0 bytes until it finishes, then displays a file size. The > process takes about .25-.5 second per page and it wouldn't be uncommon to > have a 200 page report. So the existence of this PDF could take upwards of a > minute to show. > > What I would like to do is spawn a new window and within that window keep > checking for the existence of that file and once the file is in the > directory and more than 0 bytes to <Cflocatation> to the PDF and display it > in the new window or timeout after a certain period of time and display a > try again or give the option to start the creation process over. > > Has anyone done anything like this? I know that you would use cfdirectory > for a lot of it BUT am unsure how to do the checking/timeout loop properly. > > Thanks. > Jeff > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191956 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

