Hi David,

On CFMX you can avoid this error by putting the function declaration
in <cfif thistag.executinomode is "start">...function...</cfif> -- on
CF5 you can only put the function declaration in the same template if
the tag will never be used with end-tag syntax. If you need end-tag
syntax with CF5, you have to either declare the function outside the
tag and place it in the request scope where the tag can access it, or
place the function delcaration in a separate template and use <cfif
thistag.executionmode is "start"><cfinclude
template="functionfile.cfm"></cfif>

hth


>  Hi ppl.-

>   I have a weird issue here, hope someone can help me a
>   bit

>   i have a CustomTag who needs to call some UDF's

>   if i put the <cfscript> into the CustomTag i receive
>   this error.

>  The routine myfunction has been declared twice in
>  different templates.

> The error occurred while processing an element with a
> general identifier of (), occupying document position
> (1:1) to (1:1) in the template file
>  but  i have this function only in this file.

>   i tried  put the UDF's in another file and then using
>   cfmodule adding the UDF files, this include the files (i
>   can see parsed cfoutputs in there )but can see the
>   functions.-


> The Machine : Coldfusion 5 Professional
>             : windows 2000
>             : using fusebox

>  any tips... :-)


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://macromedia.breezecentral.com/p49777853/
http://www.sys-con.com/author/?id=4806
http://www.fusiontap.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204794
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to