Subsribe to our RSS

latest reactions

christian louboutin shoes
With that kind of traffic you want to ad …
Rahul Anand
Thanks for the nice post. It works for m …
Serkan
thx a lot! …
msb
Thanks for above solution.There is ano …
Lori S.
FYI, I was using this successfully in CF …

Use OpenDNS

mxna feeds

cfmailparam behaviour change in CF9.01ColdFusion Job Opportunity in Houston, TXFacial Recognition in 14 Lines Of ColdFusionColdFusion UPS PackageColdFusion Job Opportunity in Arlington, VAColdFusion Job Opportunity in San Diego, CASome ColdFusionBloggers.org GuidelinesColdFusion Positions In CaliforniaListChangeDelimsunix epoch with coldfusionQuery scripting bug in Coldfusion 9Scoth On The Rock 2011 Tickets on salefoursquareCFC updated to version 1.0, now includes ColdFusion return typeFramework One Birds of a Feather session at CFUnitedWhat makes you a good ColdFusion programmer?

All files are strictly confidential: all information is classified.
© Copyright 2002 - 2010 mximize.com.
All right reserved.

MXNA webfeed

Visit Carlos Gallupa

How can I put a # (pound sign) in my ColdFusion output?

You can "escape" the pound sign by doubling it. For example:

<cfoutput><font color="##FFFFFF">#myVariable#</font></cfoutput>


Alternately, consider moving the CFOUTPUT tags closer to the variable, like this:

<font color="#FFFFFF"><cfoutput>#myVariable#</cfoutput></font>

6449 viewed | 2 opinion(s)  | del.icio.us | Digg it | Tjarko @ 14/11/02 9:22 cet


Reactions:

Aaron Greenlee wrote.... (site)

Escaping the "#" symbol will allow you to place a pound sign inside your cfoutput.

Example...

<cfoutput>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd";>
<html>
<head>
<title>#getResource("siteTitle")#</title>
<!-- .CSS Includes -->
<link type="text/css" rel="stylesheet" href="includes/styles/layout.css">
<!-- .JS Includes -->
<script type="text/javascript" src="includes/javascript/jquery/jquery-latest.min.js"></script>
<script type="text/javascript" src="includes/javascript/jquery/jquery.validate.min.js"></script>

<!-- jQuery Validaton Init -->
<script>
$(document).ready(function(){
$("/##headerSearch").validate();
});
</script>


</head>
<body>
<p>This was a simple example. There is no form to validate.</p>
</body>
</html>

24 February 2009 14:08 cet  

ryan roberts wrote....

this is the most annoying thing in the world. what a great way to spaghetti out and add pointless shit to your code! f cold fusion

14 May 2009 14:57 cet  

Leave your comment

Your name


Your url/website/link/email....


Some room for your reaction is placed here..



The answer to the ultimate question is?? (42 ;-))




URL en mail addresses are translated for you... life sometimes is that simple!!