CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Highlight Search for JSP

Print topic Send  topic

Author Message
Wee Ler Ping
Posted: 03/13/2002, 10:16 AM

Dear people,

How do I change the following ASP code for highlighting Search results
(Turning the matching words Red as showned in the Tips section) for JSP?
Especially the Replace syntax

if GetParam("name") <> "" then
string_to_split = GetParam("name")
tok = split(string_to_split, " ")
for i = 0 to ubound(tok) step 1
if i = 0 and i = ubound(tok) then
sWhere = sWhere & " and i.name like '%"& tok(i) &"%'"
elseif i = 0 then
sWhere = sWhere & " and (i.name like '%"& tok(i) &"%'"
elseif i = ubound(tok) then
sWhere = sWhere & " or i.name like '%"& tok(i) &"%')"
else
sWhere = sWhere & " or i.name like '%"& tok(i) &"%'"
end if
next
end if


___
if GetParam("name") <> "" then
string_to_split = GetParam("name")
tok = split(string_to_split, " ")
for i = 0 to ubound(tok) step 1
fldname = replace(fldname, tok(i), "<font color = red>"& tok(i) &"</font>")
next
end if

Yours,
Marilyn


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.