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 JS.

Teddy

On 8/21/06, Mischa Uppelschoten ext 10 <[EMAIL PROTECTED]> wrote:
If you're using .js files, have you mapped the .js extension to the CF engine?
Have you tried changing the name of the query to something that you know can never be a reserved word?
/m


>
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 error on three CFMX boxes which is why I suspect it may be a CF5 issue with something in the JavaScipt/CFML mix of code.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Charlie Arehart
Sent: Monday, August 21, 2006 10:37 AM
To: discussion@acfug.org
Subject: RE: [ACFUG Discuss] Embedded CF in _javascript_

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 "cannot set default query to xxx". I see it's saying it's in a loop. As Teddy says, seeing the code will be interesting. It's also just saying that a query named "Category" doesn't exist. Does it?


/charlie
http://www.carehart.org/blog/




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Teddy Payne
Sent: Monday, August 21, 2006 10:14 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Embedded CF in _javascript_
We would need to see the code that the error is referring to.

Teddy

On 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 as intended in CFMX but I get the following error on CF5?  Any suggestions that anyone may have on the cause and/or resolution of this will be greatly appreciated.  Thanks in advance.
Error Diagnostic Information
Cannot set default query to CATEGORY
A query by this name is not available at this time
The error occurred while processing an element with a general identifier of (CFLOOP), occupying document position (257:1) to (257:76).


-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-------------------------------------------------------------



--
<cf_payne />

Blog: http://cfpayne.wordpress.com/
Atlanta CFUG: http://www.acfug.org
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
------------------------------------------------------------- <



Mischa Uppelschoten
The Banker's Exchange, Inc.
2020 Hills Avenue NW
Atlanta, GA  30318

Phone:    (404) 605-0100 ext. 10
Fax:    (404) 355-7930
Web:    www.BankersX.com
Follow this link for Instant Web Chat:
http://www.bankersx.com/Contact/chat.cfm?Queue=MUPPELSCHOTEN



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?falogin.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------






--
<cf_payne />

Blog: http://cfpayne.wordpress.com/
Atlanta CFUG: http://www.acfug.org
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-------------------------------------------------------------

Reply via email to