Thanks, that fixed it.

Tom 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Sabir
Sent: Wednesday, 25 August 2004 11:40 AM
To: CFAussie Mailing List
Subject: [cfaussie] Re: ReplaceNoCase


First thing I notice is that you're missing quotes around your string:

try this:
<cfoutput query="codecoll_results">

   <p>
   Summary: #ReplaceNoCase(Summary,form.criteria,'<span
style="background-color:FFFF00">#form.criteria#</span>',all)#</p>

</cfoutput>

What is the problem you are getting.. an error? Or is it just not
displaying the highlighted text correctly?

bye


Wednesday, August 25, 2004, 11:31:35 AM, you wrote:

TM> Hi,

TM> I want to put a yellow background behind a certain word in a
paragraph.

TM> This doesn't work...

TM> <cfoutput query="codecoll_results">
TM>    <p>
TM>    Summary: #ReplaceNoCase(Summary,form.criteria,<span
TM> style="background-color:FFFF00">#form.criteria#</span>,all)#</p>
TM> </cfoutput>

TM> Summary is the string, form.criteria is the string I want to have 
TM> the yellow background.

TM> What am I doing wrong?

TM> Tom

TM> ________________________________

TM>          Tom MacKean
TM> Copywriter/Designer
TM> Phone: (02) 9229 6465
TM> Fax: (02) 9231 6965
TM> Mobile: 0414 312 803
TM>  NOTICE: Medical and scientific information provided in print and 
TM> electronically by Sydney IVF might not be relevant to your own 
TM> circumstances and should always be discussed with your own doctor
before you act on it. This communication is confidential and may contain
copyright or otherwise protected information of Sydney IVF Limited or a
third party. If you are not the intended recipient of this communication
please immediately let us know by reply email or telephone us on +61 2
9221 5964, delete the communication and destroy all copies.


-----------------------
Ryan Sabir
Newgency Pty Ltd
2a Broughton St
Paddington 2021
Sydney, Australia
Ph (02) 9331 2133
Fax (02) 9331 5199
Mobile: 0411 512 454
http://www.newgency.com/index.cfm?referer=rysig 


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To
unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to