RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth
Alright, thanks! -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Thursday, October 28, 2010 3:47 PM To: cf-talk Subject: Re: Question about using javascript in .cfm files... Well the thing is that the js variables need to be part of the DOM. You can your cf vars

Re: Question about using javascript in .cfm files...

2010-10-28 Thread Michael Grant
t; Gives me only one place to change variables. > > Any drawbacks to that approach? > > > > -Original Message- > From: Michael Grant [mailto:mgr...@modus.bz] > Sent: Thursday, October 28, 2010 2:30 PM > To: cf-talk > Subject: Re: Question about using javascript in

RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth
? -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Thursday, October 28, 2010 2:30 PM To: cf-talk Subject: Re: Question about using javascript in .cfm files... No, more like this var jsVar = '#

RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth
t; > and then using "jsVar" in the js? > > I haven't tried any of this or even searched > for an answerjust being lazy. > > Example? > > Rick > > -Original Message- > From: Michael Grant [mailto:mgr...@modus.bz] > Sent: Thursday, Octo

Re: Question about using javascript in .cfm files...

2010-10-28 Thread Michael Grant
Var" in the js? > > I haven't tried any of this or even searched > for an answerjust being lazy. > > Example? > > Rick > > -Original Message- > From: Michael Grant [mailto:mgr...@modus.bz] > Sent: Thursday, October 28, 2010 2:06 PM > To:

RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth
el Grant [mailto:mgr...@modus.bz] Sent: Thursday, October 28, 2010 2:06 PM To: cf-talk Subject: Re: Question about using javascript in .cfm files... I'll +1 that. I generally only use CF to set js vars at the top of the head too. That way your js can stay pure js. On Thu, Oct 28, 2010 at

Re: Question about using javascript in .cfm files...

2010-10-28 Thread Dave Merrill
t; Interesting approach, Carl! >> Haven't thought about that. >> I'll definitely give that a try! >> >> Thanks for the tip! >> >> Rick >> >> -Original Message- >> From: Carl Von Stetten [mailto:cmvon...@hotmail.com] >> Sent: T

Re: Question about using javascript in .cfm files...

2010-10-28 Thread Michael Grant
try! > > Thanks for the tip! > > Rick > > -Original Message- > From: Carl Von Stetten [mailto:cmvon...@hotmail.com] > Sent: Thursday, October 28, 2010 11:19 AM > To: cf-talk > Subject: Re: Question about using javascript in .cfm files... > > > Rick, >

RE: Question about using javascript in .cfm files...

2010-10-28 Thread Rick Faircloth
Interesting approach, Carl! Haven't thought about that. I'll definitely give that a try! Thanks for the tip! Rick -Original Message- From: Carl Von Stetten [mailto:cmvon...@hotmail.com] Sent: Thursday, October 28, 2010 11:19 AM To: cf-talk Subject: Re: Question about using

Re: Question about using javascript in .cfm files...

2010-10-28 Thread Carl Von Stetten
Rick, I have shared CF variables with JavaScript too. What I usually do is this: If I have to do any processes to define the CF variables, I put them at the top of the document, above the section. Then, in the section of my CFM page, I add a inside a

Re: Question about using javascript in .cfm files...

2010-10-28 Thread Carl Von Stetten
Rick, I have shared CF variables with JavaScript too. What I usually do is this: If I have to do any processes to define the CF variables, I put them at the top of the document, above the section. Then, in the section of my CFM page, I add a inside a

RE: Question about using javascript in .cfm files...

2010-10-27 Thread Rick Faircloth
Thanks for the tip. -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Wednesday, October 27, 2010 9:10 PM To: cf-talk Subject: Re: Question about using javascript in .cfm files... I think CTRL+SHIFT+R forces a full refresh in FF. On Wed, Oct 27, 2010 at 9:05 PM

Re: Question about using javascript in .cfm files...

2010-10-27 Thread Michael Grant
ime I've had "quirkiness" when working > with a lot of js, ajax, and cf together. > > Thanks for the feedback! > > Rick > > -Original Message- > From: Michael Grant [mailto:mgr...@modus.bz] > Sent: Wednesday, October 27, 2010 7:52 PM > To: cf-talk

RE: Question about using javascript in .cfm files...

2010-10-27 Thread Rick Faircloth
ilto:mgr...@modus.bz] Sent: Wednesday, October 27, 2010 7:52 PM To: cf-talk Subject: Re: Question about using javascript in .cfm files... Yeah, to the browser they are identical. Is it possible that you are calling your function before it's been added to the document? Like you don't call checkUserFavorites above your

RE: Question about using javascript in .cfm files...

2010-10-27 Thread Rick Faircloth
:valliants...@gmail.com] Sent: Wednesday, October 27, 2010 7:33 PM To: cf-talk Subject: Re: Question about using javascript in .cfm files... It's pretty much exactly the same. Even more exacter if you set the content type to text/javascript or whatever using cfcontent. :Den -- Custom is o

Re: Question about using javascript in .cfm files...

2010-10-27 Thread Michael Grant
Yeah, to the browser they are identical. Is it possible that you are calling your function before it's been added to the document? Like you don't call checkUserFavorites above your

Re: Question about using javascript in .cfm files...

2010-10-27 Thread denstar
It's pretty much exactly the same. Even more exacter if you set the content type to text/javascript or whatever using cfcontent. :Den -- Custom is our nature. What are our natural principles but principles of custom? Blaise Pascal On Wed, Oct 27, 2010 at 11:44 AM, Rick Faircloth wrote: > > I'

Question about using javascript in .cfm files...

2010-10-27 Thread Rick Faircloth
I've been using js files as .cfm files so I can intermix cf variables in the js. i.e., naming myJSFile.js, "myJSFile.js.cfm", instead. This seems to work fine, but I've run into an issue that makes me wonder if this works in all cases as a regular js file would. Here's the question: If I have