Skip to main content
itisdesign
Inspiring
April 16, 2006
Answered

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

  • April 16, 2006
  • 2 replies
  • 702 views
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 has been closed for replies.
    Correct answer itisdesign
    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
    April 16, 2006
    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.
    itisdesign
    itisdesignAuthorCorrect answer
    Inspiring
    April 17, 2006
    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.