Skip to main content
September 10, 2008
Question

Process two pages simultaneously

  • September 10, 2008
  • 6 replies
  • 472 views
Greetings. I want to run two pages simultaneously based on the submittal of a form. On the page that the form calls I want to run code and display a cfm result. When that page opens I want another page kicked off that runs cf processes in the background. Currently I am using cfschedule but was wondering if there was another way.
This topic has been closed for replies.

6 replies

Inspiring
September 10, 2008
quote:

Originally posted by: idesdema
Greetings. I want to run two pages simultaneously based on the submittal of a form. On the page that the form calls I want to run code and display a cfm result. When that page opens I want another page kicked off that runs cf processes in the background. Currently I am using cfschedule but was wondering if there was another way.

Run the background page in a very small iframe.
September 10, 2008
What I'm doing now is after the form is processed, I redirect to a page that sets a scheduled task to run the other file and then redirect the user back to where they were before the form. Do you think that's a good solution or should I explore these other options???
davidsimms
Inspiring
September 10, 2008
Use <CFHTTP>.
Inspiring
September 10, 2008
JR Bob Dobbs wrote:
> You might use cfthread to handle the background process.
> http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_t_04.html#2860391

As well as the newest <cfthread...> option you also have gateways, web
services and custom tags that all have more or less asynchronous
capabilities.
September 10, 2008
I should have mentioned this... I'm using cf7.
Inspiring
September 10, 2008