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



______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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