On 7/3/06, Maximilian
Nyman <[EMAIL PROTECTED]>
wrote:
Hmm, that's interesting!?!
It works just fine for me.
Do you have the actual code (you can send it directly to me if you
want), and I'll try to put it on the my server here and just run it
without touching the code and lets see if that works.
/Max
On 7/3/06, Tom MacKean <[EMAIL PROTECTED]
> wrote:
>
> Doesn't work for me.
>
> Variable MAXFUNC is undefined.
>
> Tom
>
>
> On 6/30/06, Max <[EMAIL PROTECTED]
> wrote:
> >
>
>
> Dale Fraser wrote:
> > Yep I saw it to which lead me to conclude that it cant be done.
> >
> >
> >
> > Regards
> > Dale Fraser
> >
>
> On the contrary - Not only could it be done, it's actually quite easy.
>
> Just add you function to Application.cfc:
> <cfcomponent>
> <!--- All your onApplicationStart/End, onSessionStart/End,
> onRequestStart/End, etc, etc. --->
>
> <cffunction name="maxFunc" output="false"
returnType="string"
> access="public" hint="">
> <cfargument
name="str" type="string" required="true" />
> <cfset var returnStr =
"ReturnVal: " & arguments.str />
> <cfreturn returnStr
/>
> </cffunction>
>
> </cfcomponent>
>
>
> Call you function from any .cfm page:
> Hello Max<br>
> <cfdump var="#maxFunc('Well Hello Back!')#">
>
>
> That should work just fine.
>
>
> Have a good weekend everyone,
> Max
>
> p.s.
> FYI: The function could even have access set to "private" and it
would
> still work
>
>
>
> --
> IMPORTANT: This email is intended for the use of the individual
addressee(s)
> named above and may contain information that is confidential privileged or
> unsuitable for overly sensitive persons with low self-esteem, no sense of
> humor or irrational religious beliefs. If you are not the intended
> recipient, any dissemination, distribution or copying of this email is not
> authorized (either explicitly or implicitly) and constitutes an irritating
> social fauxpas. No animals were harmed in the transmission of this email,
> although the mutt next door is living on borrowed time, let me tell you.
>
> >
>
>
--
IMPORTANT: This email is intended for the use of the individual addressee(s)
named above and may contain information that is confidential privileged or
unsuitable for overly sensitive persons with low self-esteem, no sense of humor
or irrational religious beliefs. If you are not the intended recipient, any
dissemination, distribution or copying of this email is not authorized (either
explicitly or implicitly) and constitutes an irritating social fauxpas. No
animals were harmed in the transmission of this email, although the mutt next
door is living on borrowed time, let me tell you.