I don't think you are getting it. If you build a CFC for the purpose of displaying HTML then that is all it should do. There is no trying to make it work with Flash now or later. Frankly, it doesn't even make any sense why you would want to return HTML to Flash for display purposes anyway as Flash should be able to handle creating a view on its own, possibly even calling the same business logic that the HTML CFC would.
Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 > -----Original Message----- > From: Raymond Camden [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 09, 2002 5:59 PM > To: CF-Talk > Subject: RE: CFC output > > But you would still have one CFC that would be using only cfreturn, > whereas another CFC would handle taking the result and displaying it, > correct? In that regards, you would (or could have) built the lower CFC > in such a way so that it would not only work with the higher CFC caller, > but also a flash or WS caller. Again, I'm just saying that it _may_ be > best to plan for the future and _default_ to not outputting directly, > that way if you do change your mind later, you aren't going to have to > recode a bunch of crap. Also, I have not seen the speed differences you > mentioned earlier. What kind of #s are you seeing? (Rough is fine.) > > ======================================================================= > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > > Email : [EMAIL PROTECTED] > WWW : www.camdenfamily.com/morpheus > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > > -----Original Message----- > > From: Matt Liotta [mailto:[EMAIL PROTECTED]] > > Sent: Monday, December 09, 2002 4:44 PM > > To: CF-Talk > > Subject: RE: CFC output > > > > > > Not in MVC. In MVC the model, the view, and the controller > > are all separate objects. It is certainly valid to use a CFC > > to represent each of these pieces and as such there is no > > calling template. > > > > Matt Liotta > > President & CEO > > Montara Software, Inc. > > http://www.montarasoftware.com/ > > 888-408-0900 x901 > > > > > -----Original Message----- > > > From: Raymond Camden [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, December 09, 2002 4:30 PM > > > To: CF-Talk > > > Subject: RE: CFC output > > > > > > Does this back up what I said though? If you break away the display > > from > > > the logic used to generate it, wouldn't the display be left to the > > > calling template and not the CFC? Ie, for the method, um, whatever, > > the > > > method would return a string and the caller would handle outputting, > > or > > > perhaps saving it to a file, whatever, the point is that the CFC > > > wouldn't output, it would just return the result. The caller would > > > handle the result. > > > > > > > > ============================================================== > > ========= > > > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > > > > > > Email : [EMAIL PROTECTED] > > > WWW : www.camdenfamily.com/morpheus > > > Yahoo IM : morpheus > > > > > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > > > > -----Original Message----- > > > > From: Kevin Bridges [mailto:[EMAIL PROTECTED]] > > > > Sent: Monday, December 09, 2002 3:23 PM > > > > To: CF-Talk > > > > Subject: RE: CFC output > > > > > > > > > > > > Think we should listen to Matt on this one ... 3 letters > > for dealing > > > > with > > > > cfcs: MVC (Model - View - Controller) ... learn it, live it, love > > it. > > > > > > > > Kevin Bridges > > > > > > > > -----Original Message----- > > > > From: Matt Liotta [mailto:[EMAIL PROTECTED]] > > > > Sent: Monday, December 09, 2002 2:09 PM > > > > To: CF-Talk > > > > Subject: RE: CFC output > > > > > > > > The logic used to derive those results should be > > decoupled from the > > > > display. > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

