Yes, you can -- just put the text in out output buffer directly (same as with any other CFML) rather than in the return value. Personally, I don't understand why that would necessarily be good (I would just make a CFC, then have a CFM page that calls it), but it's very possible.




stylo~ wrote:

If you call a CFC method from a browser, it always returns the result the

same way: as an XML string which the browser can display. If you call a CFC method as a web service

Damn, I didn't know that. Can I not get back raw text/javascript to act on
if I call a cfc via XMLHttpRequest, or by loading a dynamic script? That
really bites if I have to strip all return data out of xml.


(Quick test shows a wddx packet returned.)



----------------------------------------------------------
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