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







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191114
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to