Subsribe to our RSS

latest reactions

Montana Flynn
haha …
some1
Hi, Thank you for help me testing my sit …
metin2 yang
it is very nice …
Tjarko
I would'nt use cfhtmlhead for anything ; …
Sebastiaan
Hi Tjarko,Would you suggest injecting…

Use OpenDNS

mxna feeds

A Special ColdFusion Builder Event in Tampa, FLColdFusion Contract Job in Marbella, SpainColdFusion Job Opportunity in West London, United KingdomColdFusion Job Opportunity in Bethesda, MDColdFusion Job Opportunity in Springfield, MOColdFusion Job Opportunity in Seattle, WAColdFusion Builder - RefactoringColdFusion Job Opportunity in Raleigh, NCColdFusion Job Opportunity in Quincy, MAColdFusion Job Opportunity in Memphis, TNColdFusion Job Opportunity in San Antonio, TXUsing Base64 Canvas Data In jQuery To Create ColdFusion ImagesMy move from using cfhttp and rssatom.cfc to cffeed.Infinite entities, cfgrid and one cfc to handle the dataJob: ColdFusion Developer - Marbella, Spain

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

MXNA webfeed

Visit Carlos GallupaPowered by ColdFusion MX

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>

5805 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!!