With the delay, I am sure you will get this same comment several times, but
in case you don't:
You use cfscript just like any other tag so as a (poor) example:
<cfquery name="test" datasource="it">
SELECT blarg
FROM blargin_tbl
WHERE myblarg = 1
</cfquery>
<cfoutput>Welcome!</cfoutput>
<cfscript>
function plusone(myvar){
return myvar = myvar + 1;
}
url.test = url.test + 1;
</cfscript>
<cfoutput>This is a test: #plusone(1)#</cfoutput>
-----Original Message-----
From: Tim Laureska [mailto:hometeam@;goeaston.net]
Sent: Wednesday, October 30, 2002 11:01 AM
To: CF-Talk
Subject: new to CFSCRIPT
Hello All.. I visited CFLib.org today for the first time and stumbled
across a cfscript that calculates the number of days till Christmas..
I'd like to make use of that on a site, but am not familiar with how to
incorporate cfscripts into a page.. Can someone give me a starting
pointer here?
Thanks in Advance
Tim Laureska
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm