Not possible in this situation.

Yes it is. I'm not dogmatic about not outputting html from cfcs, but you should know that you can choose.



Its for a CMS and I must only have one call to the cfc for each container in
the .cfm.
Also the cfc calls a third party cfc to show the wysiwyg editor, I cant get
that to return a string and then output it.


Calling page:
        <cfoutput>#myCFC.somefunction()#</cfoutput>

myCFC:
        somefunction...
                if (cond) {
                        foo = otherFunction();
                } else {
                        foo = defaultFunction();
                }
                return foo;

        otherFunction...
                <savecontent variable="bar">
                        <cfoutput>#thirdPartyCFC.wysiwygOut()#</cfoutput>
                </savecontent>
                <cfreturn bar />


Instead of HTML output, the strings get passed pack along the chain and finally output on the page.


--

        Ben Curtis
        WebSciences International
        http://www.websciences.org/
        v: (310) 478-6648
        f: (310) 235-2067




----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to