RE: Calling functions with cfoutput

2009-01-15 Thread Gaulin, Mark
-Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Wednesday, January 14, 2009 5:50 PM To: cf-talk Subject: Re: Calling functions with cfoutput Using a function to output isn't really the done thing in CF. Use either a custom tag, module include or plain

Re: Calling functions with cfoutput

2009-01-15 Thread Dominic Watson
: Wednesday, January 14, 2009 5:50 PM To: cf-talk Subject: Re: Calling functions with cfoutput Using a function to output isn't really the done thing in CF. Use either a custom tag, module include or plain cfinclude to modularise your output logic. If the function performs some action on a string

Re: Calling functions with cfoutput

2009-01-15 Thread Dave Watts
Custom tags, cfmodule and cfinclude all exist for good reason, they are designed for modularising output. If you fully understand their use, you most likely would not desire to use a function to modularise your output though, of course, you are perfectly free to do so. While you are free to

Re: Calling functions with cfoutput

2009-01-15 Thread Dominic Watson
No, there is nothing inheritently wrong with it (though there are articled reasons for not doing it: http://www.adobe.com/devnet/coldfusion/extreme/bforta_cfc.html). I don't think there are any good reasons for doing it over using modules/includes/custom tags either. But anyways, the OP seemed to

RE: Calling functions with cfoutput

2009-01-15 Thread Josh Nathanson
[mailto:dwa...@figleaf.com] Sent: Thursday, January 15, 2009 6:18 AM To: cf-talk Subject: Re: Calling functions with cfoutput Custom tags, cfmodule and cfinclude all exist for good reason, they are designed for modularising output. If you fully understand their use, you most likely would

Calling functions with cfoutput

2009-01-14 Thread Damayanti Gupta
I have a cfform. From this I call a function, which has cfoutput tags to output text. However this text is not getting printed to the form. Is this expected? Is there a way around this? Thanks NG e.g. cfform... This is a form cfset doPrint() /cfform cffunction name=doPrint... cfoutputThis is

Re: Calling functions with cfoutput

2009-01-14 Thread Jason Fisher
Try other way around: cfoutput in form: cfform... This is a form cfoutput#doPrint()#/cfoutput /cfform cffunction name=doPrint... This is data to be printed /cffunction ~| Adobe® ColdFusion® 8 software 8 is the most

Re: Calling functions with cfoutput

2009-01-14 Thread Charlie Griefer
You're not outputting it. You're setting it. cfform ... this is a form. cfoutput#doPrint()#/cfoutput /cfform On Wed, Jan 14, 2009 at 9:16 AM, Damayanti Gupta dgu...@archemix.comwrote: I have a cfform. From this I call a function, which has cfoutput tags to output text. However this

Re: Calling functions with cfoutput

2009-01-14 Thread Gerald Guido
Is it getting rendered out side the cfform? On Wed, Jan 14, 2009 at 12:16 PM, Damayanti Gupta dgu...@archemix.comwrote: I have a cfform. From this I call a function, which has cfoutput tags to output text. However this text is not getting printed to the form. Is this expected? Is there a way

Re: Calling functions with cfoutput

2009-01-14 Thread Dominic Watson
Using a function to output isn't really the done thing in CF. Use either a custom tag, module include or plain cfinclude to modularise your output logic. If the function performs some action on a string and you want it output, you should do something like: cffunction name=myFunction...