Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at the New York ColdFusion User Group (Sep. 2009) with:

ColdFusion Application.cfc OnRequestStart Returns False To Kill Page Load

By Ben Nadel on
Tags: ColdFusion

I just happened upon this totally by accident, but apparently, if the OnRequestStart method of your Application.cfc returns false, none of the other request-events will fire. This leaves you with a rather confusing blank page. I wonder what this is used for. I am used to the return( false ) mentality from Javascript, but I wonder how this translates to ColdFusion.

I suppose that you could have page requests that ONLY need to send IN data, such as with a Session Heart Beat or something. In this case, you could avoid the overhead of OnRequest[End] processing. What is cool though is that you can output to the response buffer from within the OnRequestStart method so you could return data as well. Hmmmm, interesting.

Any one have any thoughts on how this could be leveraged?



Reader Comments

And once again, I run into a problem and think, "Wait a minute- I saw something like this on Ben's blog..."

Reply to this Comment

Post A Comment

You — Get Out Of My Dreams, Get Into My Comments
Live in the Now
Oops!
Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.