That solved the problem! However, just out of curiosity, I'm going to tinker
with the following suggestion someone sent to me:

<cfscript>
lstQuotes="#Chr(34)#,#Chr(39)#,#Chr(147)#,#Chr(148)#";
VALUE=StringName;
for (i=1; i LTE ListLen(lstQuotes); i=i+1) {
        VALUE=Replace(VALUE,ListGetAt(lstQuotes,i),"in","all");
}
</cfscript>

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Friday, March 15, 2002 6:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] Replacing double quotes in a string


If you're putting the values into <option value="...">, then use
htmlEditFormat(...) to escape the quotes into &quot;

--Daryl

----- Original Message -----
From: "Keith Purtell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 4:43 PM
Subject: RE: [KCFusion] Replacing double quotes in a string


> I've tried all the suggestions. Here's the latest version; the additional
> Chr's catch other types of quote marks. Well, they're supposed to. After
> that, you can see results from the page output by CF. The problem when
this
> goes to the browser is that this is part of a loop that populates a SELECT
> list, and the extraneous quote marks cause the browser to render the
> drop-down as much wider than normal.
>
> VALUE='#ReplaceList("#StringName#", "Chr(34),Chr(39),Chr(147),Chr(148)",
> "in,in,in,in")#'
>
> VALUE='XVGA Color Flat Panel 15 Inch Monitor Upgrade from 17" SVGA'
>
> Keith Purtell, Web/Network Administrator
> VantageMed Operations (Kansas City)
> Email:  [EMAIL PROTECTED]
>
> CONFIDENTIALITY NOTICE: This email message, including any attachments, is
> for the sole use of the intended recipient(s) and may contain confidential
> and privileged information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply email and destroy all copies of the original
> message.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Cox, Billy
> Sent: Friday, March 15, 2002 4:02 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [KCFusion] Replacing double quotes in a string
>
>
> Your code is literally looking for "&##148" rather than the double quote
> character.
>
> I would use Chr(34) to designate double quotes in your ReplaceList
function.
>
>
> Billy Cox
> Intranet/Extranet Development
> Sprint PCS
> (816) 559-5672 (voice)
> (816) 559-5810 (fax)
>
>
> -----Original Message-----
> From: Keith Purtell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 3:40 PM
> To: KCFusion (E-mail)
> Subject: [KCFusion] Replacing double quotes in a string
>
>
> I'm trying to catch double quote characters in a text string and replace
> them with the word "inch". No error messages, but my code lets double
quotes
> get past. I can't see what's wrong. Anyone care to diagnose this? I'm
using
> CF5.
>
> VALUE='#ReplaceList("StringName", "&##148;, &##147;, &##34;, &##8220;,
> &##8221;, &##8222;", "inch, inch, inch, inch, inch, inch")#'
>
> Keith Purtell, Web/Network Administrator
> VantageMed Operations (Kansas City)
> Email:  [EMAIL PROTECTED]
>
> CONFIDENTIALITY NOTICE: This email message, including any attachments, is
> for the sole use of the intended recipient(s) and may contain confidential
> and privileged information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply email and destroy all copies of the original
> message.
>


 
 
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
 

Reply via email to