Depends if you want that "Action complete" message. 

Another option would be to use cfhttp, then when the page is complete it
updates a field in the database, and you get your calling page to use remote
scripting to query that data every few seconds until the process is
complete. You'd need a remote scripting tool (such as my one
http://eswsoftware.com/srs/ but there are many others) for this. But it's
probably just making things unnecessarily complex.

-----Original Message-----
From: Mike Nicholls [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 20 January 2005 9:39 a.m.
To: CF-Talk
Subject: RE: CF calling a page itself

You could also fire off a CFHTTP request to the page you are calling with a
timeout of 1 - not quite instant, but possibly better than waiting.  I seem
to remember that a timeout of 0 causes your page to wait as long as
necessary for the request to finish before continuing, so be careful ;-)

Apparently Blackstone is supposed to have Asynchronous CFML Gateways that
make this sort of thing a lot more elegant:
http://www.dcooper.org/Blog/client/index.cfm?mode=entry&entry=24BEF3D6-4E22-
1671-55146EEC011D18D4


-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 20 January 2005 9:32 a.m.
To: CF-Talk
Subject: RE: CF calling a page itself

How about loading the page into a hidden iframe? When the page is finished,
you can get the page in the iframe to call some JavaScript in the parent
page:

parent.myJSMethod();

-----Original Message-----
From: Matthew Small [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 20 January 2005 9:23 a.m.
To: CF-Talk
Subject: CF calling a page itself

Hi,

            I need to have a CF page make a call to another CF page on the
same server but not wait for a response.  What I really need is just to do
some processing in the background but have the presentation send an "Action
complete" message to the user instead of timing out.  Can anybody help?

 

Thank you,

Matthew Small









~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191116
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to