Andy,
When using CFFLUSH you need to make sure that enough bytes are sent to
the browser on the first CFFLUSH, otherwise it won't render.
A work around is:
To add this to the top of the page:
<html>
<head>
<title>My Title</title>
</head>
<body>
<h2>My Heading</h2>
<cfoutput>#RepeatString(" ",250)#</cfoutput>
<cfflush>
I think the only important bit is the actual repeatstring() bit. There
is also an KB on Macromedia's website about it. The URL is:
http://www.macromedia.com/v1/handlers/index.cfm?id=21216&method=full
Hope this helps.
Cheers
Niklas
___________________________________________________
- p r i s m i x -
niklas richardson, internet architect
t: +44 (0) 870 749 1100 w: http://www.prismix.com/
f: +44 (0) 870 749 1200 e: [EMAIL PROTECTED]
___________________________________________________
> -----Original Message-----
> From: Andy Hall [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 11:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] CFFLUSH problems
>
>
> Tried it, but it didnt do the trick.
>
> I'm just going to work around it by changing the structure of
> the code.
>
> Just wondering why it wont do things in the order I tell it to!
>
> cheers,
>
> andy.
>
> ----- Original Message -----
> From: "Spike" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 30, 2002 10:55 AM
> Subject: RE: [ cf-dev ] CFFLUSH problems
>
>
> > It could be that the thread that's handling your request is
> firing up
> > the COM object before it does the CFFLUSH. Maybe you could
> try putting
> > the call to the email validator in a custom tag instead of
> a cfinclude.
> >
> > It's worth a try at least.
> >
> > Spike
> >
> > > -----Original Message-----
> > > From: Andy Hall [mailto:[EMAIL PROTECTED]]
> > > Sent: 30 September 2002 11:51
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [ cf-dev ] CFFLUSH problems
> > >
> > >
> > >
> > > Thanks for the help, but the page is definately being slowed
> > > down by the includes. The include calls a COM object to
> > > validate an email address which is taking 10-20seconds most
> > > of the time, so this is definately taking longer than the
> > > page request.
> > >
> > > When I remove the email validation com call and replace it
> > > with cfloop 1 to 10000, the cfflush's work as I would expect.
> > >
> > > Is just seems to be the COM object causing the problem - has
> > > anyone else had experience of this?
> > >
> > > cheers
> > >
> > > Andy
> > >
> > > ----- Original Message -----
> > > From: "Spike" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, September 30, 2002 10:33 AM
> > > Subject: RE: [ cf-dev ] CFFLUSH problems
> > >
> > >
> > > > It may be that it takes a while for the page request to get
> > > handled by
> > > > the Network/ColdFusion server/web server and the time taken
> > > to process
> > > > the 2 includes is small in comparison to the time taken for
> > > the whole
> > > > process.
> > > >
> > > > Also, most browsers won't render a partial table, so if your
> > > > 'processing...' is in a table which is closed after the
> > > includes, it
> > > > won't get displayed until all the code for the table has
> > > been sent to
> > > > the browser.
> > > >
> > > > Spike
> > > >
> > > > > -----Original Message-----
> > > > > From: Andy Hall [mailto:[EMAIL PROTECTED]]
> > > > > Sent: 30 September 2002 11:23
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [ cf-dev ] CFFLUSH problems
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I have got a page with code similar to this
> > > > >
> > > > > processing...
> > > > > <cfflush>
> > > > > <cfinclude template="/includes/include1.cfm">
> > > > > <cfinclude template="/includes/include2.cfm">
> > > > > complete...
> > > > >
> > > > > My understanding was that the page should display
> > > "processing...",
> > > > > then process the 2 includes, then print "complete...".
> > > > >
> > > > > What is happening is the page is not printing any output
> > > for a few
> > > > > seconds, then printing both "processing..." and
> > > "complete..." at the
> > > > > same time.
> > > > >
> > > > > Does anybody know why this is happening - do includes
> > > stop CFFLUSH
> > > > > working as it should? Or are there any other features
> of CFFLUSH
> > > > > that could be present in my file?
> > > > >
> > > > > Any help appreciated.
> > > > >
> > > > > Andy Hall.
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > ** Archive:
> > > > > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> > > > >
> > > > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > > > For human help, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > ** Archive:
> > > http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> > > >
> > >
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED] For
> > > > human help, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > --
> > > ** Archive:
> http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> >
> >
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED] For human help, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > --
> > ** Archive:
> http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> >
>
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > For human help, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]