What I don't understand is why the form isn't redirecting the user to the next page once the CFX_Zip tag is done. Large reports getting zipped may take about 10 seconds but it seems to not recognize the form tag after a certain period of time. However with a small report which zips in less than 2 seconds it works fine.
>I'd not make them wait. If you have a long running process like this, fire >off an asynchronous request and have it run out of process, tell the user >you'll notify them when it's done, and then have that process send them a >notification (perhaps email) with any follow-up. > >--- Ben > > > > >I'm currently trying to diagnose a problem for a client and I'm running >across the following issue. > >Client creates a large report then exports it to CSV. The CSV file is >created and then the CFX_Zip tag comes in and zips it up. > >When the user clicks to export the report to CSV a popup comes up that says >'Please wait this will take a few minutes...' once the file is zipped the >page should then advance to another page where the user can download the >zipped file. > >This works for small reports just fine however the code after the CFX_Zip >tag isn't being called if its a large report. Any ideas why, or how I can >ensure the user can advance to the next page after the file is zipped? > >Here is code of how its set up: ><!--- Zip up the file so it does not take a long time to download. ---> ><CFX_Zip ACTION="ZIP" >FILE="#GetDirectoryFromPath(CGI.Path_Translated)#exports\#FileName#" >ZIPFILE="#GetDirectoryFromPath(CGI.Path_Translated)#exports\#left(FileName,L >EN(filename)-4)#.ZIP"> > ><!--- Remove the unzipped file as it is no longer needed. The zip file is >removed via a schedule task after a few hours. ---> <cffile action="DELETE" >file="#GetDirectoryFromPath(CGI.Path_Translated)#exports\#FileName#"> > ><!--- To the next page :) If you didn't figure it out, the page is submitted >by the body onload function that submits the form. ---> <form method="post" >name="ExportForm" action="dsp_export.cfm"> > <cfset variables.tmpfilename = left(FileName,LEN(filename)-4) & >".ZIP"> > <input type="Hidden" name="FileName" >value="<cfoutput>#variables.tmpfilename#</cfoutput>"> ></form> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352948 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

