This is an intranet system and JS is always on, so we will try that. Thanks!!!!!
Regards, Eric J Hoffman DataStream Connexion www.datastreamconnexion.com Delivering Creative Data Solutions -----Original Message----- From: Dave Carabetta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 9:26 PM To: CF-Talk Subject: Re: CFFlush error > A long running page (5 seconds) has a little processing banner going > on, and when done, bam goes to next page automatically appending a > specific number to the url string. That is the requirement...and so > this cfflush, cflocate cannot work...I have tried with cfheader as > well. > > We see these kind of things on travel sites...does anyone have any > examples, lessons in CF that work in this manner, or are we missing > something? The problem you're running into is that when you use <cfflush>, you flush out the HTML headers with the data, so they're no longer available after it's first called. Since <cflocation> is just CF manually changing the HTML header information to point to the template specified in the "url" attribute, and the HTML headers have already been sent back to the browser, you're seeing your error because the headers don't exist to CF anymore. One suggestion would be to use JavaScript at the bottom of the template to redirect the user instead of <cflocation>. This is what I think Orbitz and other sites use (though they might also user server-side redirects, which is available in other languages like ASP and JSP -- and CFMX). Since you're not modifying HTML headers, you can continue to use <cfflush> and <cflocation> in the same template. Here's a sample of the JS you would use: <!--- Do all page processing first, then use this as the last command on the page ---> <script language="JavaScript1.2"> document.location.href = 'temple_to_redirect_to.cfm'; </script> Alternatively, you can link the calling page to your waiting page, and then use an onLoad() command in the body tag of the waiting page to call the processing template. This way you can display a waiting page for your user while the processing takes place in the background. You'll note that both of these suggestions rely on the use of JavaScript, so if users don't have JS enabled, these would not be viable options. Regards, Dave. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

