Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
BimmerBoy #1
Wanting to restrict search
I have a page that I use to search through db entries. Some of these entries
contain HTML and other HTML-like markup and the contents of the tags is turning
up in a search. Is there a way to get the query to ignore this stuff? I have
tried a couple of things but have had no luck. Any help with this matter would
be greatly appreciated!!
BimmerBoy Guest
-
I'm wanting to learn Flash
Where can I get good beginner tutorials for using flash? Thanks -
wanting an extra 0.5 inch margin when printing
Acrobat prints great to the printer. and i just found that there is a checkbox that let's you select "print as image"... when it is not checked,... -
Anyone wanting to sell a license
If anyone is interested in selling a license for Director (8.5+), please contact me off list to doscuss it. So far i've been cycling through trial... -
Newbie wanting to change label
Hi ! I'm new in flash. What i need is a label that displays the current year and when pressed it links to a url like:... -
AI10.03 Question with a blend wanting to export to PD
I want to export a large blend to Photoshop. I don't know if flattening will affect the color. Would there be any difference if it was Rasterized... -
MikerRoo #2
Re: Wanting to restrict search
Is this a SQL query or a Verity query?
How is the HTML stored? Is it raw (bad form, old chap) -- ie. <?
Or HTML encoded? Ie. <
Here's a general purpose approach that should work:
A) to just stop the HTML from displaying, strip it from the string using
REReplace.
Something like:
<CFSET sStrippedStr = REReplace (sRawStr, "<.+>", "","ALL")
B) To weed false search hits, due to tag contents maybe something like the
following...
1) query as before.
2) loop through the query rows, and change the contents to the stripped value,
as in step A.
4) Using the original criteria, query the updated query set. That is, run a
QofQ on the stripped data -- false hits will not be in the final set.
Consider posting exact examples of what you have, versus what you want.
Regards,
-- MikeR
MikerRoo Guest



Reply With Quote

