This is for ColdFusion aficionados who want to use Ajax. Ajax is implemented in such a way that ColdFusion method calls on the server gets executed using JavaScript a la Ajax. This tutorial shows you where to get the code and how to implement it on your local server.
CFAjax: What it is and How to Use it - Implemented ColdFusion Function (Page 2 of 5 )
The following ColdFusion function, 'test_this ()' will be implemented using the tags <cffunction/>. Put simply, this function takes two arguments, x and y. The function produces the result, which is the square root of summing the values of x * x and y * y.
This function may be tested with the following statement added to the above. The resulting CFM file TestThis.cfm calls the function 'test_this' passing the arguments 3 and 4 to the function. The browser output for this is shown in the next picture. Five is the correct answer for square root of (3^ 2 + 4 ^ 2).