RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread West, Jason
Outstanding! Good to here that he found the resolve on this.   Thanks   Jason From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy Payne Sent: Monday, August 21, 2006 12:15 To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Embedded CF in _javascript_

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
Jason,I believe that Greg found the issue in the previous email with naming his query differently from the name of the columns defined in the query.TeddyOn 8/21/06, West, Jason <[EMAIL PROTECTED]> wrote: But the error said it could not find the query, would this be the cause of the

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread West, Jason
But the error said it could not find the query, would this be the cause of the error with defining the boundaries?   -JLW   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy Payne Sent: Monday, August 21, 2006 11:30 To: discussion@acfug.org Subject: Re: [A

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread West, Jason
Greg,   This might be a stupid question but have you tried moving the Category query above the DOCTYPE tag?  I don’t think this has to do with the version of the server but rather the way includes are being called.  I only say that because the initial error message you sent out gave some

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Did you try renaming the query named “Category”? I’m 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: discussion@acfu

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Many thanks Charlie. I’m an old school CFer and don’t get to do so much coding these days so I was a little unsure of my repsonse. I’m 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 res

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Good answer and I should have mentioned that. I sometimes use CF to dynamically populate JS arrays or variable values. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy Payne Sent: Monday, August 21, 2006 10:40 AM To: discussion@acfug.org Subject: Re: [ACFUG

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
It is also a good practice to prefix your queries.  Mischa made a good point.  A query named category with a category column can cause coding legibility and sometimes forgotten mistakes.  I tend to prefix my queries with "qry", for example: This way you can call qryCategory.category, which looks be

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
You do not have to define the boundaries of the query when using cfloop. Teddy On 8/21/06, McTure, Greg <[EMAIL PROTECTED]> wrote: Here are the parts of my code that the error is referring to.  Be mindful that this functionality and code works nicely as intended on all three CFMX ma

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
Be mindful that this functionality and code works nicely as intended on all three CFMX machines but not on the lone CF5 machine.   The code is simply for dependent select drop-downs.  The first drop down displays the major categories form the database and the 2nd and 3rd drop down equally

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread McTure, Greg
Here are the parts of my code that the error is referring to.  Be mindful that this functionality and code works nicely as intended on all three CFMX machines but not on the lone CF5 machine.   The code is simply for dependent select drop-downs.  The first drop down displays the major cat

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Gerrey . Mary-Catherine
If you comment out the _javascript_ part and leave just the loops, does the page execute without error? mcg "McTure, Greg" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 08/21/2006 10:52 AM Please respond to discussion@acfug.org To discussion@acfug.org cc Subject RE: [ACFUG D

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: Monda

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 "cann

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
Greg,Well, we cannot really help Greg without seeing where the query is set code wise.Teddy  On 8/21/06, McTure, Greg < [EMAIL PROTECTED]> wrote: The query does exist and specifically it is the very first piece of code on the page.  I've sent the code and the CFLOOP is simply to loop

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.  I’ve 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 witho

Re: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Teddy Payne
You can have ColdFusion generate _javascript_.  So as long as the JS code is between script tags, you can use CF to create JS arrays, embed variables into _javascript_s...you get the point.  The error specifically is referring to a CF error of a missing or TeddyOn 8/21/06, Dusty Hale <[EMAIL PROTE

RE: [ACFUG Discuss] Embedded CF in Javascript

2006-08-21 Thread Dusty Hale
Not sure if this is a great answer and I am sure some of the more experienced ACFUGers may have a better answer.   _javascript_ is usually done on the client side so I don’t believe it is even possible to embedd CFML code into _javascript_. Someone please correct me here if I am wrong.

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 wor