> HTML can be very useful in Flash for simple formatting of text.  If
you
> have text with embedded formatting tags, like bold, italic, fonts,
lists,
> etc., then it's much easier and still appropriate to send that to
Flash
> for
> display as opposed to creating your own standard for demarcating these
> items and settings styles with setNewTextFormat.  If the HTML is more
> complex like tables and embedded images, then you probably want to
> separate
> it out (although a case can be made for leaving as is--for example we
have
> built a table rendering engine in flash and could conceivably create
an
> HTML type interface where it accepts standard HTML table tags and
displays
> them).
> 
Certainly HTML can be useful inside of Flash for rich formatted text.
However, it seems to make more sense to create this HTML inside of a
Flash component then a CFC.

> While I was the one that initially disagreed with you on display of
HTML
> in
> CFCs, I will say that I do agree with you to a point--as long as you
> separate your logic from your display, then having a CFC which is
> dedicated
> to display and does output HTML directly is architecturally fine.
> 
Indeed, separating logic from display is important. Too often people
assume that if you are outputting directly from a CFC then you are not
doing this. That is a wrong assumption that should be avoided.

> However, please keep in mind that the original question on this thread
was
> "how do we output HTML from a CFC?"  When you have a very basic
question
> like this, you have to consider the audience and a simple answer of
"you
> do
> it like this..." would not really be sufficient since it's probable
that
> someone asking this type of question is not going to be familiar with
> n-tier or MVC development.
> 
Agreed, but if you recall, I never really answered the person's
question, but instead took issue with responses to it. Just because
someone might not understand the entire landscape surrounding an issue
is no reason to give them incorrect information.

-Matt

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to