|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Postponing a cfhttp request
Hello.David Fafard 04/28/04 03:03 P You wrote:Larry Lyons 04/28/04 03:15 P > From: David FafardPhilip Arnold 04/28/04 04:32 P Why not just invoke a CFC to do the cfhttp call? That can happenGreg Luce 04/28/04 04:43 P <cfflush> is a tag the list helped me with recently. 04/28/04 03:46 P That sounds reasonable.. I definitely do not want the cfhttp result returnedDavid Fafard 04/28/04 04:31 P Hello. I have a page on our public facing server that has a call to a cfhttp page on our internal LAN. The problem I am having is the delay users are getting while this page is getting called/executed. There is no need for the user to be delayed while this "post process" is going on. The remote cfhttp page on my internal LAN has some database updates and inserts. Is there an argument that will allow the remote page on the internal LAN to process while avoiding the delay my users are experiencing on the public site? I just want this page to execute after the users submits a page.. but they do not need to wait while it executes. Thanks, Dave You wrote: ----- Excess quoted text cut - see Original Post for more ----- Dave, If you can use a hidden frame, try to send the form submission to the hidden frame page and send a JS relocation to some other page in the visible frame. That way the processing can go on in the background while the user does other activities. Since its using a hidden frame the user may not notice whether anything else is happening in the background. hth, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- ----- Excess quoted text cut - see Original Post for more ----- A couple of thoughts Does the Intranet version need to be updated as soon as the user hits Submit? If not, then you could store the relevant information on the server and then have a scheduled task running which CFHTTPs the info to the Intranet server every 15 minutes or so That way, the user gets immediate response, and the Intranet is updated when the server gets the chance to do it What happens if the Intranet server's connection is down? Using an immediate CFHTTP can be dangerous as your data might not be transferred at all, so you'd have to express this to the user unless you schedule it for later If you timeout your request, it fails completely, so the user's data never made it to the Intranet server Why not just invoke a CFC to do the cfhttp call? That can happen regardless of the page request that's going on. Are you on CFMX? Greg Hello. I have a page on our public facing server that has a call to a cfhttp page on our internal LAN. The problem I am having is the delay users are getting while this page is getting called/executed. There is no need for the user to be delayed while this "post process" is going on. The remote cfhttp page on my internal LAN has some database updates and inserts. Is there an argument that will allow the remote page on the internal LAN to process while avoiding the delay my users are experiencing on the public site? I just want this page to execute after the users submits a page.. but they do not need to wait while it executes. Thanks, Dave <cfflush> is a tag the list helped me with recently. It may help your problem. Hello. I have a page on our public facing server that has a call to a cfhttp page on our internal LAN. The problem I am having is the delay users are getting while this page is getting called/executed. There is no need for the user to be delayed while this "post process" is going on. The remote cfhttp page on my internal LAN has some database updates and inserts. Is there an argument that will allow the remote page on the internal LAN to process while avoiding the delay my users are experiencing on the public site? I just want this page to execute after the users submits a page.. but they do not need to wait while it executes. Thanks, Dave _____ What about the "timeout" parameter of the <cfhttp> tag? I've only used <cfhttp> once, so by no means am I an expert, but I would think that if you set the "timeout" value to a low number, maybe even 0, then you use a <cftry><cfcatch> block around the <cfhttp> to trap the timeout error and ignore it - should work. I would defer to the more knowledgeable member of this group if I am completely off my rocker. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning That sounds reasonable.. I definitely do not want the cfhttp result returned to the page it is on, I just want it to fire "post process"... if that makes sense. I will try the timeout attribute, thanks. Dave What about the "timeout" parameter of the <cfhttp> tag? I've only used <cfhttp> once, so by no means am I an expert, but I would think that if you set the "timeout" value to a low number, maybe even 0, then you use a <cftry><cfcatch> block around the <cfhttp> to trap the timeout error and ignore it - should work. I would defer to the more knowledgeable member of this group if I am completely off my rocker. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning
|
February 08, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||