I think I've resolved my issue. The problem was that I was referring to the
function within a cfmoduled page in my template.  So, that module didn't
know the function existed.

I say "probably" resolved because my web server chose to crash and won't
restart. Since I was almost done for the day, i don't feel like restarting
the entire computer for this.

But, I'm reasonably sure this was the issue.
-------------------------------------------
Scott Brady
http://www.scottbrady.net
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 5:44 PM
Subject: RE: UDF not being recognized


>
> HTH,
> barneyb
>
> > -----Original Message-----
> > From: Scott Brady [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 18, 2003 4:27 PM
> > To: CF-Talk
> > Subject: UDF not being recognized
> >
> >
> > I must be losing my mind, because this is really simple, but . . . .
> >
> > I'm writing a UDF with cffunction in a functions page I've
> > cfiincluded into
> > a template, but when I try to call the function, CF doesn't recognize
the
> > function. If I put the cffunction inline in the template, it does.
> >
> > Here's the code from the functions page (yes, I know all I'm
> > doing so far is
> > returning the exact same string):
> > <cffunction name="replaceHTML" returntype="string">
> >  <cfargument name="theString" required="true">
> >
> >  <cfset newString = theString>
> >  <cfreturn newString>
> > </cffunction>
> > <!--- alert box just to make sure file is loaded --->
> > <script type="text/javascript">alert(2);</script>
> >
> >
> > Here's the code calling the function:
> > <cfset variables.contentNoHTML = replaceHTML(attributes.content)>
> >
> > When I run this page, I get the javascript alert(2); so I know
> > the function
> > page is loading. But, I also get an error saying that "replaceHTML" is
> > undefined.
> >
> > (Since I'm used to doing UDFs with cfscript, I converted it to a
cfscript
> > UDF and got the same result)
> >
> > So, what's the embarassingly obvious thing I missed?
> >
> > Scott
> > -------------------------------------------
> > Scott Brady
> > http://www.scottbrady.net
> >
> >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to