Yes. That made it work. Cool.
 
Tom

 
On 7/3/06, Maximilian Nyman <[EMAIL PROTECTED]> wrote:

Ok, here is the answer (which I just figured out with some old
fashioned trail-and-error)

If you want your custom functions in Application.cfc to be accessable
in your cfm pages you have to include the onRequest method into your
Application.cfc

       <cffunction name="onRequest" returnType="void" output="true">
               <cfargument name="targetPage" type="string" required=true/>
               <cfinclude template="#arguments.targetPage#">
       </cffunction>

Cheers,
Max


Mike Kear wrote:
> I have functions in Application.cfc that are outside the normal
> methods.  i.e. not inside onRequestStart or onApplicationStart etc  It
> just includes them as methods just like any other.
>
>
> Tom, are you sure you're not nesting your function inside another method?
>
>
> Cheers
> Mike Kear
> Windsor, NSW, Australia
> Certified Advanced ColdFusion Developer
> AFP Webworks
> http://afpwebworks.com
> ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
>
>
> On 7/3/06, Tom MacKean < [EMAIL PROTECTED]> wrote:
> >
> > I just cut and pasted the code from your post. I added the function after my
> > OnRequestEnd function and put the "Hello Max" code on a test page. The page
> > gives me the grey unexpected error box with Variable MAXFUNC is undefined.
> >
> > I'm running CFMX 7 on Apache / Windows XP. Maybe it's just me. Has anyone
> > else tried Max's code?
> >
> >
> > Tom
> >
> >





--
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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to