Is it possible for a coldfusion page to launch another template, but not in the user's browser
Posted on 2011-04-24
I have a test/quiz built in ColdFusion 9, and when the user hits the last page, I would like that to trigger a page that actually does the scoring and writing the report.
But I don't want the user to see any of that.
Also, in case the user closes their browser or moves to another page after they hit the last test page, I don't want that to interrupt the scoring and report writing which can take a few seconds.
So the scoring and reporting can't be running on the users browser. Needs to be running in something like a browser opened by the system.
Currently I run the scoring and report writing as a scheduled task that runs every 2 minutes. I'd like to get rid of the scheduled task because it runs whether or not there are any tests to process.
Another reason to get rid of the scheduled task is that even the 2 minute delay in getting test results can upset the customers who paid a premium to get their results immediately. Other customers pay a budget price and get their reports on the next day.