RTFM :)

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/buildi25.htm

"If a CFC method that you access using the URL displays output
directly, the user's browser shows the output. (You can use the
cffunction tag output attribute to disable displaying output.) If the
CFC returns a result using the cfreturn tag, ColdFusion converts the
text to HTML edit format (with special characters replaced by their
HTML escape sequences), puts it in a WDDX packet, and includes the
packet in the HTML that it returns to the client."

On Mon, 25 Oct 2004 11:11:27 +1300, Adam Cameron <[EMAIL PROTECTED]> wrote:
> G'day.
> 
> Sample code;
> 
> <!--- called_via_url.cfc --->
> <cfcomponent>
> <cffunction name="f" returntype="string" output="false" access="remote">
>         <cfreturn "THIS IS A BLOODY STRING ALREADY YOU TWAT">
> </cffunction>
> </cfcomponent>
> 
> Now, if I browse to that, thus:
> 
> http://localhost/junk/cfcs/called_via_url.cfc?method=f
> 
> I get this:
> 
> <wddxPacket version='1.0'><header/><data><string>THIS IS A BLOODY STRING
> ALREADY YOU TWAT</string></data></wddxPacket>
> 
> I'm sorry, but I missed the bit in which I said "actually, no, despite
> saying "STRING", I actually meant "WDDX"; thanks for picking me up on
> that one, CF"
> 
> Any ideas?
> 
> Adam
----------------------------------------------------------
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