House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

asynchronous call?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
05/04/2008 06:44 PM

hi, i have a process that does take some time to do. i.e it gets data out of the database, processes it, and then converts it to a spreadsheet. the data and data processing can get quite large and therefore i think the best way to do this would be as follows: when the user clicks on a button to generate the spreadsheet i call an asynchronous event that starts the build. the page then reloads and continues to reload until either the spreadsheet is available or the user goes away from the page. while the spreadsheet is being built the page will inform the user to be patient while it is being built. once the spreadsheet is built then it is shown on the page and will remain each time the user comes back to that page until they click a renew button. which starts the process all over again. im hoping this will save the browser from timing out and will allow the user to either wait or go off and do something else while it is being generated is this possible with some form of asynchronous calls? is this the best way to handle something like this? and if so then what is the best way to handle the asynchronous calls? i would very much appreciate your feedback thanks richard

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
05/04/2008 08:36 PM

----- Excess quoted text cut - see Original Post for more ----- You can do this very easily in CF 8 using the CFTHREAD tag. If you're using CF 7 Enterprise, you could use an event gateway. In any previous version, you could have your code create a scheduled task. In any case, rather than having the browser wait around, you might have the user go do other things until the spreadsheet is ready. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
05/05/2008 09:21 AM

thanks Dave i was starting to look into event gateways but i do have coldfusion 8 so will definitely now look into the cfthread tag thanks also for your feedback at least i now know i am on the right path richard ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

August 21, 2014

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
           1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31             

Designer, Developer and mobile workflow conference