On Wed, 27 Oct 2004 14:41:50 +0700, stylo~ <[EMAIL PROTECTED]> wrote: > <cffunction name="go" access="remote" output="true" returntype="string"> > <cfoutput>#description#</cfoutput> > > No return tag
Well, if you're declaring the function should return a string and you have no return tag, that's an error in your program logic anyway. Like I said, either your method outputs something or it returns something. Doing both is bad practice and just asking for trouble. > What http processor? Coldfusion? The HTTP processor that is part of ColdFusion (since CF is implemented as a set of Servlets) and which invokes ColdFusion pages / methods based on what's in the URL. > which is not at all necessary http-wise, but something to do with how the > cfc interacts with browser calls. ...via the HTTP processor! If you just returned your string from the CFC method to the browser, where would the HTTP headers come from? Answer: the HTTP processor through which all "browser calls" go. Therefore the HTTP processor will take the returned value from your CFC - and any output written to the HTTP response buffer - and it will create something that is a valid HTTP response. You can argue all day long about that process not being to your liking but, as Brian K observes, that's the way it is and it's very clearly documented to work that way. If you don't like it, file an ER through the wish form: http://www.macromedia.com/go/wish > I'm not being belligerent here, just trying to figure out exactly what's > going on as I design an app with a clientside interacting remotely with the > server. The docs are very clear on the behavior. -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Got Gmail? -- I have 1 invite "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ---------------------------------------------------------- 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]
