|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
asynchronous call?
Author: Richard White
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56282#304736
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 -----
Author: Dave Watts
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56282#304730
----- 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/
Author: Richard White
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56282#304727
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
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||