> > >> Also, has anyone had any negative reaction to loading a > CFC into server > >> scope? > > > Note that you cannot output HTML from methods of CFCs that > are stored > > in shared scopes (but, hey, you wouldn't be outputting HTML > from CFCs > > anyway, would you?). > > How does that happen? I can't store a CFC in the application > scope and use > writeoutput() in a method to display stuff from it? ... Or
Correct. Or <cfoutput> for that matter. This is a known bug. > for that matter > > <cfoutput>#application.mycfc.mymethod()#</cfoutput> > > and simply have the method return a string? If the method RETURNS a string, then it will work ok. I.e., this is good: <cfreturn "You go, girl"> This is not: <cfoutput>You go, girl</cfoutput> The second example will work on the first hit only. As it stands, many people (myself included) think it's a bad idea to directly output from the method. But - that's another discussion... ======================================================================= Raymond Camden, ColdFusion Jedi Master for Hire Email : [EMAIL PROTECTED] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Get the mailserver that powers this list at http://www.coolfusion.com