oops -- sorry -- didn't see the previous response.
-----Original Message-----
From: Caulfield, Michael [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 10:36 AM
To: CF-Talk
Subject: RE: Replace List Help - SORRY
I tried your code and it works fine for me. Maybe there is something strange
with the variable you are passing it? The following works for me just fine.
<cfoutput>#ReplaceList(ParagraphFormat(":-), :'(, :-), :'(, :-), :'("),
":-), :'(", "<img src=images/smiley.gif>, <img
src=images/sad.gif>")#</cfoutput>
As far as how to do it dynamically, it would go something like
<CFQUERY datasource="myDSN" name="e">
SELECT emoticon, image
from emoticonLookupTable
</CFQUERY>
#ReplaceList(message, "#valuelist(e.emoticon)#", "#valuelist(e.image)#")
or something like that.
Mike.
-----Original Message-----
From: Erika Foster [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 11, 2001 8:41 PM
To: CF-Talk
Subject: Replace List Help - SORRY
Sorry about that last message - kids playing with the keyboard.
Can someone tell me why this doesn't work?
#ReplaceList(ParagraphFormat(message), ":-), :'(", "<img
src=images/smiley.gif>, <img src=images/sad.gif>")#
It works for the first replacement, but not for subsequent replacements in
the list. Also - I have the text and the images to replace the texts in a
DB table. I'd like to be able to build this ReplaceList function
dynamically. Any suggestions?
Thanks!
Erika Foster
engineering-environmental Management
Applications Developer
(505) 866-1654
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists