I aas also thinking about soing it that way, but I thought the other way is
possible as well. Having problems with it right now though.

Do I put the call within the <head></head> of my cfm file or does it matter
where it goes?



-----Original Message-----
From: Hays, Duncan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 9:01 AM
To: CF-Talk
Subject: RE: Calling a .js file from a CF file


I do this but when I need to create the js dynamically I'll include a .cfm
file that is all js.
Something like <cfinclude template="js_jscode.cfm">

You still see all the code if you do a view source on the page but at least
the code is cleaner.

Duncan Hays

-----Original Message-----
From: Richard Castrios [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 8:45 AM
To: CF-Talk
Subject: RE: Calling a .js file from a CF file


Place the following in the .cfm template that includes the js functions that
are referencing the .js file.

<SCRIPT Language="JavaScript" SRC="validate.js">
</SCRIPT>

Rick

-----Original Message-----
From: James Taavon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 8:41 AM
To: CF-Talk
Subject: Calling a .js file from a CF file


I have a file with lots of validation in it. I want to remove the validation
from my .cfm file and put in a .js file. Question is, how do I call a .js
file from my CF file?

James




______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to