RE: Send response to browser, but continue working on request?

2001-12-12 Thread Lon Lentz
Sorry for my nondescript answer yesterday but I didn't have the exact answer in front of me. Use cfhttp in your kickstart template to make a post to the action template with a timeout=1. -Original Message- From: Tony Schreiber [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December

RE: Send response to browser, but continue working on request?

2001-12-12 Thread Tony Schreiber
CFHTTP with a timeout of 1? Hmm. I got it working with CFEXECUTE (Timeout 0), but ultimately CFHTTP may be easier to use (because I can pump some cookie variables into it)... Sorry for my nondescript answer yesterday but I didn't have the exact answer in front of me. Use cfhttp in your

RE: Send response to browser, but continue working on request?

2001-12-12 Thread Lon Lentz
I don't know how this will work if you are running both templates on the same server. We had the kickstart template on the webserver and the action template on a different machine. -Original Message- From: Tony Schreiber [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12,

RE: Send response to browser, but continue working on request?

2001-12-11 Thread Raymond Camden
If you are running CF5, just use CFFLUSH. Sample: ... Hey, I'm doing a bunch of junk, please stand by CFFLUSH CFREALSLOWTHING === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL

Re: Send response to browser, but continue working on request?

2001-12-11 Thread David Schmidt
Have you tried cfflush? I believe this tag will allow you to send partial responses to the browser. I might have spelled it wrong, but I am sure there is a function in CF. David - Original Message - From: Tony Schreiber [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday,

Re: Send response to browser, but continue working on request?

2001-12-11 Thread Tony Schreiber
That let's me get a message to the browser, but the request is still running and the browser is still waiting... I want to browser to stop waiting... Have you tried cfflush? I believe this tag will allow you to send partial responses to the browser. I might have spelled it wrong, but I am

Re: Send response to browser, but continue working on request?

2001-12-11 Thread Jochem van Dieten
Tony Schreiber wrote: That let's me get a message to the browser, but the request is still running and the browser is still waiting... I want to browser to stop waiting... Could you send some javascript to the browser with CFFLUSH that does a redirect? script language=javascript

RE: Send response to browser, but continue working on request?

2001-12-11 Thread Dunwiddie, Bruce
you are wanting the browser to make a request for a file but not wait for the file to be retrieved? if so, I don't think that's feasible. a general solution for the problem of generating the email would be to have a img src=createfile.cfm that can send out the email and you can show them whatever

RE: Send response to browser, but continue working on request?

2001-12-11 Thread mherbene
Perhaps you could use the CFSCHEDULE tag to programmatically schedule a job to run (soon) which generates the file and sends the email? Then the page that the user sees will be done as soon as the job is scheduled (should be quick). Though some people hate CFSCHEDULE and I haven't used it much.

RE: Send response to browser, but continue working on request?

2001-12-11 Thread Michael Haggerty
Tony; The scheme I used in the past to do something similar was the following. Please keep in mind this is pre-version 5 and may no longer be the best practice. 1) Update a database with the user's id and the details on the page to generate (any variables passed, etc.). Display a page

RE: Send response to browser, but continue working on request?

2001-12-11 Thread Tony Schreiber
Thanks, that sounds good, but I was hoping to not have to use CFSCHEDULE. Any other ideas? The scheme I used in the past to do something similar was the following. Please keep in mind this is pre-version 5 and may no longer be the best practice. 1) Update a database with the user's id and

RE: Send response to browser, but continue working on request?

2001-12-11 Thread Tony Schreiber
No, I want the browser to request a page that returns immediately (so the broswer isn't waiting for a request to be completed and ultimately time out), but spawns a long-running request that will create the requested file and then email it to the user... I think the previously posted

RE: Send response to browser, but continue working on request?

2001-12-11 Thread Andrew Tyrone
Tony, I don't know what OS/platform you are using, but CFEXECUTE should do what you want. Recently I was working on this exact problem. The application is a content management system for an advertising agency. When Jobs are updated, sometimes HUGE files need to be moved, hundreds of megabytes

RE: Send response to browser, but continue working on request?

2001-12-11 Thread Tony Schreiber
I didn't know you could do that with CFEXECUTE, that sounds like it will work perfectly. I can simply use cfexecute to initiate the cf template that generates the file... Very cool. I don't know what OS/platform you are using, but CFEXECUTE should do what you want. Recently I was working on