Skip to main content
itisdesign
Inspiring
Apr 16, 2006 7:38 AM UTC
Answered

emoticons do not, but should, flow with the text in a cfformitem type="html"

Try this for yourself, using any 15x15 pixel .jpg:

Emoticon flows with text here:<br />
ColdFusion rocks! <img src="/smile.jpg" width="15" height="15"> ColdFusion rocks!
<hr />
Emoticon does not flow with text here:<br />
<cfform format="flash">
<cfformitem type="html" height="200">ColdFusion rocks! <img src="/smile.jpg" width="15" height="15"> ColdFusion rocks!</cfformitem>
</cfform>

Flash cfform guestbook w/ emoticon support?
    This topic is closed to new replies. Start a new post to keep the conversation going.
    itisdesign
    itisdesignCorrect answer
    Inspiring
    Apr 17, 2006 8:25 AM UTC
    CFDocumenting the guestbook messages w/ emoticons to FlashPaper and then pointing to the .swfs in the img tag works, in my particular situation (though I'll have to work w/ the FP2 API for further customization). Currently I do not consider it a solution to the note in the LiveDocs, but rather more of an annoying/unnecessary work-around. It is, in a way, a 'solution' to my particular issue, but not the actual solution I'd hoped for with these technologies.

    Flash's dynamic sizing rules should not force images onto a new line.

    2 replies

    itisdesign
    Inspiring
    Apr 16, 2006 8:31 PM UTC
    According to the LiveDocs:

    "Note: Because of the Flash dynamic sizing rules, to ensure that the image displays properly, you might have to specify the formitem tag height attribute and the width and height attributes for the form or the containing cfformgroup tag. Also, the image always displays on a new line, not inline with text, and text that follows the image in your code occupies any available space to the right of the image."

    That's nice. That 'explains' the bizarre placement of the emoticons.
    Translate
    itisdesign
    itisdesignAuthorCorrect answer
    Inspiring
    Apr 17, 2006 8:25 AM UTC
    CFDocumenting the guestbook messages w/ emoticons to FlashPaper and then pointing to the .swfs in the img tag works, in my particular situation (though I'll have to work w/ the FP2 API for further customization). Currently I do not consider it a solution to the note in the LiveDocs, but rather more of an annoying/unnecessary work-around. It is, in a way, a 'solution' to my particular issue, but not the actual solution I'd hoped for with these technologies.

    Flash's dynamic sizing rules should not force images onto a new line.
    Translate