[ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
This is a general question to see if anyone has ran into issues with embedded CFML code in _javascript_ with a page working in CFMX and not in CF5? The code I have works as intended in CFMX but I get the following error on CF5? Any suggestions that anyone may have on the cause and/or

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
We would need to see the code that the error is referring to.TeddyOn 8/21/06, McTure, Greg [EMAIL PROTECTED] wrote: This is a general question to see if anyone has ran into issues with embedded CFML code in _javascript_ with a page working in CFMX and not in CF5? The code I have works

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
The query does exist and specifically it is the very first piece of code on the page. Ive sent the code and the CFLOOP is simply to loop through the query return of major categories to populate a dependent secondary drop down with the corresponding sub-categories. Again, this works without

Re: [ACFUG Discuss] group count ability

2006-08-21 Thread Scott Caillier
In practice, I've not seen using count(1) instead of count(*) to make any actual difference. It may be how our databases are configured (Oracle 9i). We're moving to 10g soon, so I'm looking forward to see if that makes a difference. I would encourage you to test and compare the two before just

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Charlie Arehart
Also, by "embedded CFML code in _javascript_" do you mean simply CFML code that's building _javascript_ in a .cfm template. In that case, it doesn't really matter if it's creating JS or HTML. The error just reflects a problem in the code or config. That said, I can't say I've ever seen

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Charlie Arehart
Nope, that's a good perspective to have, Dusty. I had in fact asked the same question in a reply to the list, but it's just not yet been received for some reason. /charlie http://www.carehart.org/blog/ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dusty HaleSent: Monday,

Re: re[2]: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
If you want to use JS files with CF, I would recommend not changing the mapping of .js. I would rename file.js to file.js.cfm and then use cfinclude template=pathToFile/file.js.cfm in the head tag. That way CF will generate the text to add whatever dynamic driven elements you are looking for your

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Many thanks Charlie. Im an old school CFer and dont get to do so much coding these days so I was a little unsure of my repsonse. Im soon to resign though from my position in a different industry with aspirations of possibley getting back into the CF job market. Thanks again for the

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Did you try renaming the query named Category? Im not sure about this but it could just be a reserved word in CF5 but not in CFMX. Dusty From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of McTure, Greg Sent: Monday, August 21, 2006 10:46 AM To: