-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
: 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
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
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
[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
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
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
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
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
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...
10 matches
Mail list logo