Steven Dowd
|
| Posted: 06/13/2002, 1:57 AM |
|
In CCS
I have a 15 column grid that I have to search for test, the search all
works great, but Its not always easy to see which column the search has
'found' the search result due to all the other test in all the fields.
Can anyone guide me to a way or have an example of a way to parse the
search result in such a way as to highlight in a different colour font
the text that's been searched for?
Steven Dowd
______________________
http://www.dowd.info
______________________
|
|
|
 |
Steven Dowd
|
| Posted: 06/13/2002, 2:19 AM |
|
Sorry , but for some reason , my stupid spell check converted the word
text = test in what I posted
it should read
==
I have a 15 column grid that I have to search for text, the search all
works great, but Its not always easy to see which column the search has
'found' the search result due to all the other text in all the fields.
Can anyone guide me to a way or have an example of a way to parse the
search result in such a way as to highlight in a different colour font
the text that's been searched for?
Steven Dowd
==
"Steven Dowd" <newspost.steven.dowd@dowd.co.uk> wrote in message
news:ae9mps$e3e$1@news.codecharge.com...
> In CCS
>
> I have a 15 column grid that I have to search for test, the search all
> works great, but Its not always easy to see which column the search
has
|
|
|
 |
keijen
|
| Posted: 06/13/2002, 2:46 PM |
|
Look here..
http://www.gotocode.com/art.asp?art_id=113&
"Steven Dowd" <newspost.steven.dowd@dowd.co.uk> wrote in message
news:ae9mps$e3e$1@news.codecharge.com...
> In CCS
>
> I have a 15 column grid that I have to search for test, the search all
> works great, but Its not always easy to see which column the search has
> 'found' the search result due to all the other test in all the fields.
>
> Can anyone guide me to a way or have an example of a way to parse the
> search result in such a way as to highlight in a different colour font
> the text that's been searched for?
>
> Steven Dowd
>
>
>
>
>
>
>
>
> ______________________
>
> http://www.dowd.info
> ______________________
>
>
>
|
|
|
 |
Steven Dowd
|
| Posted: 06/13/2002, 3:11 PM |
|
Thanks for the reply keijen,
I tried this, I get it to work ok as per the example in CC
but I tried to get it to work in CCS and I failed. the differences
between the two seem to be to great
another reason for tips n tricks at gotocode.com to be clearly separated
Steven
"keijen" <keijen@ozemail.com.au> wrote in message
news:aeb3s4$dk6$1@news.codecharge.com...
> Look here..
>
> http://www.gotocode.com/art.asp?art_id=113&
>
>
> "Steven Dowd" <newspost.steven.dowd@dowd.co.uk> wrote in message
>news:ae9mps$e3e$1@news.codecharge.com...
> > In CCS
> >
> > I have a 15 column grid that I have to search for test, the search
all
> > works great, but Its not always easy to see which column the search
has
> > 'found' the search result due to all the other test in all the
fields.
|
|
|
 |
keijen
|
| Posted: 06/13/2002, 5:47 PM |
|
....OK - sorry it's for CC only... I should've reckoned on that.
If you get a solution Steven, post here OK?
keijen
"Steven Dowd" <newspost.steven.dowd@dowd.co.uk> wrote in message
news:aeb5an$gih$1@news.codecharge.com...
> Thanks for the reply keijen,
> I tried this, I get it to work ok as per the example in CC
>
> but I tried to get it to work in CCS and I failed. the differences
> between the two seem to be to great
> another reason for tips n tricks at gotocode.com to be clearly separated
>
> Steven
>
>
> "keijen" <keijen@ozemail.com.au> wrote in message
>news:aeb3s4$dk6$1@news.codecharge.com...
> > Look here..
> >
> > http://www.gotocode.com/art.asp?art_id=113&
> >
> >
> > "Steven Dowd" <newspost.steven.dowd@dowd.co.uk> wrote in message
> >news:ae9mps$e3e$1@news.codecharge.com...
> > > In CCS
> > >
> > > I have a 15 column grid that I have to search for test, the search
> all
> > > works great, but Its not always easy to see which column the search
> has
> > > 'found' the search result due to all the other test in all the
> fields.
>
>
>
|
|
|
 |
DonB
|
| Posted: 06/13/2002, 7:45 PM |
|
You could try something like this if you're doing "asp":
(drop all but what's in the <% ... %> for your code - the other stuff is for
showing the effect, which is to assign a class (style) to the appropriate
text. The "Replace" function is an efficient way to replace all occurrences
of a string with a style-altered version of the string.
Plug the <html> ... </html> part into an asp file and try it. I happened to
use the "RockIt" style, but use whatever you like. You could simply put in
"<font color='#FF0000"> and force the text to change color, which may be all
you really need.
<html>
<head>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="Themes/RockIt/Style.css">
</head>
<%
Dim s,v1,v2
v1= "test"
v2="this"
s = "this is a test this is a test this is a test this is a test"
s = replace(s,v1,"<font class=RockItAltDataTD>" & v1 &"</Font>")
s = replace(s,v2,"<font class=RockItFormHeaderFont>" & v2 &"</Font>")
response.write s
%>
</html>
This changes "test" and "this" to alternate appearances based on the RockIt
style.
A "for" loop could be used if you have several values to Replace.
don
"keijen" <keijen@ozemail.com.au> wrote in message
news:aebefs$25g$1@news.codecharge.com...
> ...OK - sorry it's for CC only... I should've reckoned on that.
>
> If you get a solution Steven, post here OK?
>
> keijen
>
>
> "Steven Dowd" <newspost.steven.dowd@dowd.co.uk> wrote in message
>news:aeb5an$gih$1@news.codecharge.com...
> > Thanks for the reply keijen,
> > I tried this, I get it to work ok as per the example in CC
> >
> > but I tried to get it to work in CCS and I failed. the differences
> > between the two seem to be to great
> > another reason for tips n tricks at gotocode.com to be clearly separated
> >
> > Steven
> >
> >
> > "keijen" <keijen@ozemail.com.au> wrote in message
> >news:aeb3s4$dk6$1@news.codecharge.com...
> > > Look here..
> > >
> > > http://www.gotocode.com/art.asp?art_id=113&
> > >
> > >
> > > "Steven Dowd" <newspost.steven.dowd@dowd.co.uk> wrote in message
> > >news:ae9mps$e3e$1@news.codecharge.com...
> > > > In CCS
> > > >
> > > > I have a 15 column grid that I have to search for test, the search
> > all
> > > > works great, but Its not always easy to see which column the search
> > has
> > > > 'found' the search result due to all the other test in all the
> > fields.
> >
> >
> >
>
>
|
|
|
 |
|