Re: Escaping #'s in outputting a CSS

2006-04-19 Thread Rob Wilkerson
Are you trying to replace # with ##?  If so, you might need to
replace ## with .  Maybe a code sample of what you're
attempting will help.

Is the CSS embedded or inline?  If it's linked, then of course there's
no need to escape the #'s

On 4/19/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Stupid beginner question I know but it's been a long time since I've done any
 REAL CF coding.

 I am trying to create an HTML code generator for a client and am having
 problems escaping the #'s in the CSS.  I tried the good ole ## but that's not
 working.  It throws an error.  If I just remove the #'s then the colors don't
 get set the way they're supposed to.

 I can provide code samples if needed.

 TIA,
 Katrina Chapman



 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238141
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Escaping #'s in outputting a CSS

2006-04-19 Thread Ben Nadel
What is the error being thrown?? 

...
Ben Nadel 
www.bennadel.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 12:52 PM
To: CF-Talk
Subject: Escaping #'s in outputting a CSS

Stupid beginner question I know but it's been a long time since I've done
any REAL CF coding.

I am trying to create an HTML code generator for a client and am having
problems escaping the #'s in the CSS.  I tried the good ole ## but that's
not working.  It throws an error.  If I just remove the #'s then the colors
don't get set the way they're supposed to.  

I can provide code samples if needed.

TIA,
Katrina Chapman





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238146
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Escaping #'s in outputting a CSS

2006-04-19 Thread Sandra Clark
You can use rgb(rr,gg,bb) instead of Hex numbers in CSS. 


Sandra Clark
==
http://www.shayna.com
Training in Cascading Style Sheets and Accessibility 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 12:52 PM
To: CF-Talk
Subject: Escaping #'s in outputting a CSS

Stupid beginner question I know but it's been a long time since I've done
any REAL CF coding.

I am trying to create an HTML code generator for a client and am having
problems escaping the #'s in the CSS.  I tried the good ole ## but that's
not working.  It throws an error.  If I just remove the #'s then the colors
don't get set the way they're supposed to.  

I can provide code samples if needed.

TIA,
Katrina Chapman





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238153
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: escaping #'s

2001-03-16 Thread Top-Link Tech (John Ceci)

Melissa,

try this:

CFSET Body = Replace(Body,"##","","ALL")

HTH,
John

-Original Message-
From: Melissa Fraher [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 11:00 AM
To: CF-Talk
Subject: escaping #'s


I have a text area that submits to a message board and sends out an
email to subscribers.  When a user enters a # in the body of the message
it causes an error.

How do you escape # signs?

Here is the code that I tried:
CFSET BODY= Replace(#Body#,"#","##","ALL")

Here is the error that I get:
Error Occurred While Processing Request

 Error Diagnostic Information

 Just in time compilation error

 Invalid parser construct found on line 99 at position 35. ColdFusion
was looking at the following text:

 "

 Invalid expression format. The usual cause is an error in the
expression structure.

Does anyone know how to get around this?

Thanks.

Melissa
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: escaping #'s

2001-03-16 Thread Philip Arnold - ASP

 I have a text area that submits to a message board and sends out an
 email to subscribers.  When a user enters a # in the body of the message
 it causes an error.

 How do you escape # signs?

 Here is the code that I tried:
 CFSET BODY= Replace(#Body#,"#","##","ALL")

 Here is the error that I get:
 Error Occurred While Processing Request

  Error Diagnostic Information

  Just in time compilation error

  Invalid parser construct found on line 99 at position 35. ColdFusion
 was looking at the following text:

  "

  Invalid expression format. The usual cause is an error in the
 expression structure.

 Does anyone know how to get around this?

You have to escape the #s within the replace

CFSET BODY= Replace(Body,"##","","ALL")

And will people PLEASE read Ben's "To # or not to #"

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: escaping #'s

2001-03-16 Thread Stewart McGowan

at

http://www.defusion.com/articles/index.cfm?ArticleID=26

just in case you don't know

Stew

And will people PLEASE read Ben's "To # or not to #"
Philip Arnold


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: escaping #'s

2001-03-16 Thread Aidan Whitehall

 http://www.defusion.com/articles/index.cfm?ArticleID=26
 just in case you don't know

or point them to
http://www.thenetprofits.co.uk/coldfusion/faq/#answer89
and
http://www.thenetprofits.co.uk/coldfusion/faq/#answer111



-- 
Aidan Whitehall [EMAIL PROTECTED]
Netshopper UK Ltd
Advanced Web Solutions  Services

http://www.netshopperuk.com/
Telephone +44 (01744) 648650
Fax +44 (01744) 648651

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: escaping #'s

2001-03-16 Thread John Wilker

What also works, that I've done is to replace the #'s with the ASCII char.
That way you don't have to worry about whether it'll end up being properly
escaped or not. When it's displayed the browser will translate the Char into
a Pound

The ASCII char for # is #35

My code was CFSET FormDetail = #Replace(FORM.Detail, "##", "##35;")#

That way your db just has an ASCII value where ever a pound was. Seems to
work pretty well in my app.

Hope that helps too

J.

John Wilker
Web Applications Consultant
Allaire Certified ColdFusion Developer

Office: 909-943-8428
www.billtracker.org http://www.billtracker.org


-Original Message-
From: Top-Link Tech (John Ceci) [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 9:58 AM
To: CF-Talk
Subject: RE: escaping #'s


Melissa,

try this:

CFSET Body = Replace(Body,"##","","ALL")

HTH,
John

-Original Message-
From: Melissa Fraher [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 11:00 AM
To: CF-Talk
Subject: escaping #'s


I have a text area that submits to a message board and sends out an
email to subscribers.  When a user enters a # in the body of the message
it causes an error.

How do you escape # signs?

Here is the code that I tried:
CFSET BODY= Replace(#Body#,"#","##","ALL")

Here is the error that I get:
Error Occurred While Processing Request

 Error Diagnostic Information

 Just in time compilation error

 Invalid parser construct found on line 99 at position 35. ColdFusion
was looking at the following text:

 "

 Invalid expression format. The usual cause is an error in the
expression structure.

Does anyone know how to get around this?

Thanks.

Melissa
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: escaping #'s

2001-03-16 Thread Melissa Fraher

Thank you for all of the quick answers to this question!


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists