Re: Code from cfhtmlhead showing up in jQuery AJAX JSON data

2011-09-24 Thread Lists
.. > > Rick > > -Original Message- > From: Steve 'Cutter' Blades [mailto:cold.fus...@cutterscrossing.com] > Sent: Saturday, September 24, 2011 8:41 AM > To: cf-talk > Subject: Re: Code from cfhtmlhead showing up in jQuery AJAX JSON data > > > Yo

RE: Code from cfhtmlhead showing up in jQuery AJAX JSON data

2011-09-24 Thread Rick Faircloth
8:41 AM To: cf-talk Subject: Re: Code from cfhtmlhead showing up in jQuery AJAX JSON data You wouldn't put it in onApplicationStart, but onRequest (cf9+). onRequest is only triggered on cfm requests, whereas a cfc would trigger onCFCRequest. (I am assuming your Ajax requests are going to a CFC

Re: Code from cfhtmlhead showing up in jQuery AJAX JSON data

2011-09-24 Thread Steve 'Cutter' Blades
You wouldn't put it in onApplicationStart, but onRequest (cf9+). onRequest is only triggered on cfm requests, whereas a cfc would trigger onCFCRequest. (I am assuming your Ajax requests are going to a CFC) Set up your js vars in onApplicationStart application.siteDetail = {"js_sitename"

Re: Code from cfhtmlhead showing up in jQuery AJAX JSON data

2011-09-24 Thread Russ Michaels
; Sent: Saturday, September 24, 2011 8:00 AM > To: cf-talk > Subject: Re: Code from cfhtmlhead showing up in jQuery AJAX JSON data > > > it is only happening onApplicationstart or is it being inserted into > every request ? > > Russ > > On Sat, Sep 24, 2011 at 12:31 PM, Rick

RE: Code from cfhtmlhead showing up in jQuery AJAX JSON data

2011-09-24 Thread Rick Faircloth
ot;request" for data? -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Saturday, September 24, 2011 8:00 AM To: cf-talk Subject: Re: Code from cfhtmlhead showing up in jQuery AJAX JSON data it is only happening onApplicationstart or is it being inserted into every reques

Re: Code from cfhtmlhead showing up in jQuery AJAX JSON data

2011-09-24 Thread Russ Michaels
it is only happening onApplicationstart or is it being inserted into every request ? Russ On Sat, Sep 24, 2011 at 12:31 PM, Rick Faircloth wrote: > > Ok... something to talk about besides $20/hr (which may look > really good, depending on how hungry you are...) > > I recently started using cfht

Code from cfhtmlhead showing up in jQuery AJAX JSON data

2011-09-24 Thread Rick Faircloth
Ok... something to talk about besides $20/hr (which may look really good, depending on how hungry you are...) I recently started using cfhtmlhead in onApplicationStart to put the following CF/JS in the head of each page to translate my CF site variables to JS: var js_sitenam