On Tue, May 22, 2012 at 6:14 PM, Rick Faircloth <[email protected]> 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

