Simply place your function between <cfscript></cfscript> tags. Then lower on
the page call it like this: <cfoutput>#DaysUntilChristmas()#</cfoutput> .
You would put a list of attributes between the () if there were any.

Later, you might want to place all your functions in files called function
libraries, and then cfinclude them in your pages, perhaps in
application.cfm. That way, you'll know they're always there. They become
like a part of the CF language.

Regards,
Matthew Walker
http://www.matthewwalker.net.nz/


----- Original Message -----
From: "Tim Laureska" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 8:00 AM
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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to