| | |
How to make user defined function global?
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Hi again,
Okay now I have a Coldfusion question, I have written a user defined function in coldfusion:
Now I am a complete newbie to coldfusion and don't want to have to include this function in every page when I have to do this validation, but would rather have this as a global function to the whole application.
I've inherited this project so not completely 100% on how this application is set up, but if I can get an idea where to place this code to make it global that would be great.
I noticed an _app.cfm file that had some default values assigned and tried placing the function in this file, but that did not work.
Okay now I have a Coldfusion question, I have written a user defined function in coldfusion:
coldfusion Syntax (Toggle Plain Text)
<cfscript> function isSqlInjection(str) { .... } </cfscript>
Now I am a complete newbie to coldfusion and don't want to have to include this function in every page when I have to do this validation, but would rather have this as a global function to the whole application.
I've inherited this project so not completely 100% on how this application is set up, but if I can get an idea where to place this code to make it global that would be great.
I noticed an _app.cfm file that had some default values assigned and tried placing the function in this file, but that did not work.
![]() |
Similar Threads
- How to use a user-defined function which generates result set in a SQL statement (MySQL)
- User defined functions (C++)
- Completing User defined function (C++)
- User Defined function on time (C++)
- User-defined functions (C++)
- User-Defined Function - part 2 (C++)
- using(STL)function object (bind2nd) with a user defined function object (C++)
Other Threads in the ColdFusion Forum
- Previous Thread: Form Field replacing Blank with a "+"
- Next Thread: using HTML input type = "file"
| Thread Tools | Search this Thread |





