yes. that's right. if you weren't writing stuff to the browser it'd be fine....
think about that for a second. Why display stuff to the users browser and then
push them somewhere else? if it worked and the server was fast enough you'd
never see what was CFFLUSH'ed to the screen.
are you *sure* you want to redirect the user automatically before they can read
what the result of the processing was? same argument as the auto JS re-direct..
just a thought.
barry.b
<cfset strBuilder = "" />
<CFLOOP from="1" to="1000" index="i">
<cfset strBuilder = strBuilder & "value #i# " />
<cfif i mod 10 eq 0>
<!--- comment this out to remove the error --->
<cfoutput>#strBuilder#</cfoutput><br />
<cfflush>
<!--- comment this out to remove the error --->
<cfset strBuilder = "" />
</cfif>
</CFLOOP>
<CFSCRIPT>
getPageContext().forward("page2.cfm");
</CFSCRIPT>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Scott
> Thornton
> Sent: Wednesday, 28 September 2005 8:48 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: CFFLUSH AND CFLOCATION
>
>
> Actually:
>
> It doesn't work.
>
> The error occurred in C:\Platypus2test\Admin\sbmt215_act.cfm:
> line 5280
>
> 5278 :
> 5279 : <CFSCRIPT>
> 5280 : getPageContext().forward("sbmt215.cfm");
> 5281 : </CFSCRIPT>
> 5282 :
>
> Exceptions
>
> 08:44:49.049 - java.lang.IllegalStateException - in
> D:\websites\Bilby\Admin\sbmt215_act.cfm : line 5280
>
>
> Do I need to mention I am on CFMX6.1?
>
>
>
>
>
>
> >>> [EMAIL PROTECTED] 09/27/05 5:29 pm >>>
> Try a server side redirect
>
> <CFSCRIPT>
> getPageContext().forward("relativeURL");
> </CFSCRIPT>
>
> > Hi,
> >
> > I have a page with a bunch of queries upon it. (42 to be precise).
> >
> > To show the user that something is happening, between each
> query I output
> > to the screen
> >
> > <cfflush>
> > query x has been processed</br>
> >
> > and then process the next query.
> >
> > It now seems that the CFLOCATION at the bottom of page
> doesn't get run.
> >
> > There are no errors on the page, or anything to indicate
> why the page has
> > stopped processing and not run the cflocation. I am
> thinking that using
> > CFFLUSH has broken this feature somehow.... as its the only
> thing on the
> > page that has changed....
> >
> > any thoughts?
> >
> >
> >
> > Scott Thornton, Programmer
> > Application Development
> > Information Services and Telecommunications
> > Hunter-New England Area Health Service
> > Phone RNH +61 2 49236066
> > Fax +61 2 49236076
> >
> > [EMAIL PROTECTED]
> >
> >
> > ---
> > You are currently subscribed to cfaussie as:
> [EMAIL PROTECTED]
> > To unsubscribe send a blank email to
> > [EMAIL PROTECTED]
> > Aussie Macromedia Developers: http://lists.daemon.com.au/
> >
>
>
>
> ---
> You are currently subscribed to cfaussie as:
> [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/