On Tue, May 22, 2012 at 10:50 PM, Rick Faircloth
<[email protected]> wrote:
> Well, apparently, I can conditionally comment out any of the
> CF based on the requesting file. However, the JS isn't affected
> by the conditional comments and still shows up in the JSON, causing
> the JS to stop processing.  Once I remove the JS, the processing
> occurs normally.

Is your JS in a CFM file? If so, it doesn't matter. CF doesn't care if
you output HTML, JS, or Klingon. If it is a CFM or a CFC _file_, then
onRequestStart will fire.

> PS - I appreciate the tip on "thepage" variable passed onRequestStart.
> I didn't find that in the docs, specifically, nor in other Google searches.

It is there - in the CFML Reference, chapter 8 (well, for CF10) is:
Application CFC Reference

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:351308
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to