CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Attn: DonB

Print topic Send  topic

Author Message
Sean
Posted: 03/16/2004, 6:58 AM

Don,

I was looking at your KB on your website and am really interested in CCbth KB Article 2020 (Highlighting Search Results).

I tried with no success to do this. Is there anyway you can provide an example? I am using ASP, CCS and Access.

I would like to highlight the s_keyword results in the grid.

Any help on this would be greatly appreciated.

Thanks,
Sean

BTW, very nice website. I joined a while back, but haven't really looked at it too much until recently.
DonB
Posted: 03/16/2004, 3:04 PM

OK, I decided to put that up. It's there under "Color-coded HTML text".
It's derived from an example by Lewis Moten, http://www.lewismoten.com

Thanks for the compliment - and may I remind you this is "clickware" so you
can help support the site and keep it going with no cost to you.
--
DonB

http://www.gotodon.com/ccbth


"Sean" <Sean@forum.codecharge> wrote in message
news:6405716025fb24@news.codecharge.com...
> Don,
>
> I was looking at your KB on your website and am really interested in CCbth
KB Article 2020 (Highlighting Search Results).
>
> I tried with no success to do this. Is there anyway you can provide an
example? I am using ASP, CCS and Access.
>
> I would like to highlight the s_keyword results in the grid.
>
> Any help on this would be greatly appreciated.
>
> Thanks,
> Sean
>
> BTW, very nice website. I joined a while back, but haven't really looked
at it too much until recently.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Sean

Posts: 39
Posted: 03/17/2004, 6:36 AM

Don,

Thanks for posting the file. Do you have any instructions on how to implement that with CCS? I'm still learning, so please be patient.

Also, when I click Details on your Downloads section and then click one of the ads, it just closes the window. Is that right? What if I want to go to their site?

Thanks again,
Sean
View profile  Send private message
DonB
Posted: 03/17/2004, 7:47 AM

So, today I learned the onblur event overrides links on the same page,
closing the page before the link opens :-) Oops.

The download I published is a class module, which means the file containing
it needs to be included into your page. I did this at the very top of my
"event" asp page:

<!-- #INCLUDE FILE="..\ColorKeywords.asp"-->
%>

Then it's simply a matter of instantiating the object and and calling the
HTML method

Dim objKW
set objKW = new clsColorKeywords
Call objKW.KeywordList("comma-separated string of keywords")

then apply the colorization to a variable or the Value property of an
object:

<a variable or object value> = objKW.HTML(<a variable or object
value>,"")

then cleanup the object:

Set objKW = nothing

I prefer to use the AfterInitialize and BeforeUnload page events to create
and cleanup the object, then use the appropriate BeforeShow event (for a
label or other Control) to invoke the HTML method. This is up to you and
how you plan to utilize the object.

--
DonB

http://www.gotodon.com/ccbth


"Sean" <Sean@forum.codecharge> wrote in message
news:640586269bf442@news.codecharge.com...
> Don,
>
> Thanks for posting the file. Do you have any instructions on how to
implement that with CCS? I'm still learning, so please be patient.
>
> Also, when I click Details on your Downloads section and then click one of
the ads, it just closes the window. Is that right? What if I want to go to
their site?
>
> Thanks again,
> Sean
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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