Can the CFFUNCTION tag be added to a CF5 server?

Posted on 2006-05-08
Last Modified: 2013-12-24
Can the CFFUNCTION tag be added to a CF5 server?
Question by:inverted_2000
    LVL 24

    Assisted Solution

    no - you need to write using
    function helloWorld() {
       var greeting = "Hello World!";
       return greeting;

    LVL 12

    Accepted Solution


    CFFunction was introduced in CF6 when CF was rebuilt on Java. Version 5 was on C++ and sisnt have any OO tags at all.

    dgrafx is correct in saying you can use a UDF but its not quite the same as a function taht you instantiate. In that sense a function can be set once and you create instances of it when you need them, a UDF sits there in memory and there is only ever one instance of it, so its not a very effective replacement for cffunction.

    The only other consideration would be to use a custom tag. This decision (versus a UDF) should be based upon the load of the site and what the particular task is that you wish to carry out.

    Hope that helps.
    LVL 2

    Author Comment

    Yes that helps....ty much

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
    Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now