Remove the single quotes from form.description. You are treating it as a
string rather a variable
-Original Message-
From: Rick Sanders [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 13, 2007 9:25 AM
To: CF-Talk
Subject: Replace Syntax
Hey list,
I'm trying to replace double
#Replace(form.description,'',',ALL)#
On Nov 13, 2007 9:25 AM, Rick Sanders [EMAIL PROTECTED] wrote:
Hey list,
I'm trying to replace double quotes for single quotes in a string using
this
syntax:
#Replace('form.description','',',ALL)#
However, it's giving back form.description in the
Sweet! It worked, thanks!
Rick Sanders
Webenergy
Canada: 902-401-7689
USA: 919-799-9076
Canada: www.webenergy.ca
USA: www.webenergyusa.com
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: November-13-07 11:02 AM
To: CF-Talk
Subject: Re: Replace
replace(form.description
not
replace('form.description'...
form.description is the variable, 'form.description' is a string with
the name of the variable.
--Ben Doom
Rick Sanders wrote:
Hey list,
I'm trying to replace double quotes for single quotes in a string using this
syntax:
You need the breaking . Try this:
#Replace('form.description','',rsquo,ALL)#
Robert B. Harrison
Director of Interactive services
Austin Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119
F : 631.434.7022
www.austin-williams.com
Great advertising can't be
What am I doing wrong?
You are actually replacing quotes in the string 'form.description'
instead of variable form.description.
Just try #Replace(form.description,'',',ALL)#
--
___
REUSE CODE! Use custom tags;
See
cfset txt = Replace(form.description,,',ALL) /
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Rick Sanders [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 13, 2007 9:25 AM
To: CF-Talk
Subject: Replace Syntax
Hey list,
I'm
remove the quotes around form.description
#Replace(form.description,'',',ALL)#
Rick Sanders wrote:
Hey list,
I'm trying to replace double quotes for single quotes in a string using this
syntax:
#Replace('form.description','',',ALL)#
However, it's giving back
#Replace('form.description','',',ALL)#
Remove the quotes around form.description.
Dave Watts, CTO, Fig Leaf Software
~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
CFSET get_page =
replace(page_content, img
src=http://productlocator.site.com/productlocator/resources/9/KEGP/header_02.gif;
width=242 height=75, )
You need some quotes around your img string.
CFSET get_page =
replace(page_content, 'img
coldfusion.developer wrote:
Why isn't this working?
cffile action=read file=http://www.site.com/StoreLocator/Store_page.txt;
variable=page_content
The file attribute of cffile requires a path, not a URL.
CFSET get_page = replace(page_content, img
If you need to read content from a URL, use cfhttp not cffile.
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 22, 2006 10:36 AM
To: CF-Talk
Subject: replace syntax
12 matches
Mail list logo