I was under the impression that you couldn't put a CFLocation after a CFFlush, as the 
flush command sends the headers and the page data so far and the cflocation sends a 
modified header. You can't do both.

Darren Tracey

> -----Original Message-----
> From: Phil Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 28 May 2003 12:28 PM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: Background (non-blocking) processing of .cfm
> files
> 
> 
> Hi Viktor,
> 
> The following is still somewhat kludgy, but may be an option...
> 
> Considering your first option of
> "use <cflocation> to present another page to the user while 
> the first one
> continues to process the code below the <cflocation> call"
> 
> I suspect this would fail as once it hit's the cflocation 
> processing on that
> page halts.
> 
> However, I wonder what would happen if you had
> 
> <META HTTP-EQUIV="Refresh" CONTENT="1; URL=show_me_to_user.cfm">
> <cfflush>
> <cflocation url="my_background_processing">
> 
> No guarantees, but may work.
> 
> Phil.
> 
> 
> ----- Original Message ----- 
> From: <[EMAIL PROTECTED]>
> To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 28, 2003 12:15 PM
> Subject: [cfaussie] Background (non-blocking) processing of .cfm files
> 
> 
> >
> > This email is to be read subject to the disclaimer below.
> >
> > Hi all,
> >
> > Here's a good one for y'all. How can I background the 
> processing of a cfm
> > template, ie return a page to the user but continue 
> processing another
> .cfm
> > page in the background, discarding its output? This is 
> pretty much what
> > <cfexecute> does with the timeout set to 0, except with 
> CFMX we no longer
> > have a convenient way of executing .cfm files from the 
> command line (ie no
> > more cfml.exe).
> >
> > Some of the options I've thought about:
> > - use <cflocation> to present another page to the user 
> while the first one
> > continues to process the code below the <cflocation> call
> > - use a scheduled task that runs every minute, checks for 
> new background
> > jobs and executes them
> > - use cfhttp to call another .cfm file on the local machine, set the
> > timeout value to something really short and ignore timeout errors
> >
> > All of these are somewhat kludgy and I was wondering if anyone could
> > suggest a better solution.
> > Thanks in advance
> >
> > Cheers,
> > Vik
> > -----------------------
> > Viktor Radnai
> > Web Developer
> > Ernst & Young Australia
> > http://www.eyware.com/
> > http://www.eyonline.com/
> > http://www.compassweb.com.au/
> > Direct: +612 9248 4361
> > Fax: +612 9248 4073
> > Mobile: +61408 662 546
> >
> > --------------------
> > NOTICE - This communication contains information which is 
> confidential and
> > the copyright of Ernst & Young or a third party.
> >
> > If you are not the intended recipient of this communication 
> please delete
> > and destroy all copies and telephone Ernst & Young on 1800 655 717
> > immediately. If you are the intended recipient of this 
> communication you
> > should not copy, disclose  or distribute this communication 
> without the
> > authority of Ernst & Young.
> >
> > Any views expressed in this Communication are those of the 
> individual
> > sender, except where the sender specifically states them to 
> be the views
> of
> > Ernst & Young.
> >
> > Except as required at law, Ernst & Young does not represent, warrant
> and/or
> > guarantee that the integrity of this communication has been 
> maintained nor
> > that the communication is free of errors, virus, interception or
> > interference.
> >
> > Liability limited by the Accountants Scheme, approved under the
> > Professional Standards Act 1994 (NSW)
> > --------------------
> >
> >
> >
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> >
> > MX Downunder AsiaPac DevCon - http://mxdu.com/
> >
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to 
> [EMAIL PROTECTED]
> 
> MX Downunder AsiaPac DevCon - http://mxdu.com/
> 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to