opensubscriber
   Find in this group all groups
 
Unknown more information…

c : cf-talk@houseoffusion.com 23 May 2012 • 10:25AM -0400

Re: How to prevent cfhtmlhead content from being inserted into cfmail...
by Raymond Camden

REPLY TO AUTHOR
 
REPLY TO GROUP





On Tue, May 22, 2012 at 6:14 PM, Rick Faircloth
<Rick@whit...> wrote:
>
> Ray, can you (or any of your other guys) give me an example
> of how to code to "check the requested file" ???

onRequestStart is passed one attribute, the name of the file being
requested. You can use list functions on it if you want -

<cffunction name="onRequestStart">
  <cfargument name="thepage">

  <cfset var extension = listLast(thepage, ".")>

  <!--- logic here to do stuff if .cfc -->

> I don't understand why the variable set in onRequestStart, "js_variables"
> gets included in the JSON response, anyway.

Because onRequestStart means just that - run it every time you request
a CFC or CFM.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351299
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.