We identified the following solution: we setup an expired schedule task in
the coldfusion administrator, then on the page that inserts the data into
the database we used the cfschedule tag <cfschedule ACTION="Run"
TASK="TaskName">. When using the "ACTION="Run"" the task will kick off
immediately and only when new data is entered into the database. The task
calls a page in the background that takes care of the background need.
Thanks for the suggestions,
Calvin
-----Original Message-----
From: Calvin Moree [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 3:41 PM
To: CF-Talk
Subject: Realtime Background Task
We are currently using CF 4.5.1 on NT. I have an application where a user
inputs data into a form and submits the form to another page that enters the
data into the database. What I want to do is at the same time as the data
to going into the database, I also want the data to be sent to a totally
separate page in the background. If I use CFHTTP the user can’t continue
until the CFHTTP is complete. I don’t want the user to wait because they
don’t need a response from the background page. I just want to send the
data and not retrieve anything back. Is there a tag or code I can use to
perform this function?
TIA
Calvin
P.S. The background page is performing several queries. The query results
are then used to create a text file. We don't want the user to have to wait
for the text file to be created.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists