Search Keyword in HTML page
- From: ajay.sonawane@xxxxxxxxx
- Date: 25 Jun 2005 02:08:29 -0700
Hello All,
It is a follow up for this post
http://groups.google.co.in/group/microsoft.public.vc.mfc/browse_threa....
Now I could highlight text using your code. I also want to use same
code for
checking whether any specific keyword is present in HTML page,no need
to
highlight those keywords. So I used some part of code to do so.
1: But my further requirement is to exclude search for some HTML
elements
having some specific id ( Infact there are some of the HTML elements
that
are added by myself in HTML page to do some special
processing.
For Example.after every news item I have added a link "Email me" with
ID =
EMAIL, So On Clicking it , I use it to open MSOutlook instead of
opening
any link associated with it) . I want to exclude search for that
element as
I know that it not the content of real page (the search function
will
return TRUE for keyword "Email" though it is not present in content of
real
page because it will find the link with text "Email me"
).
What do u think how could I modify the same code to do this sort of
handling?
2: Browser(CHtmlView) displays my HTML page. Another requirement is to
search keyword in only visible part of browser. Suppose page is 2 big,
scroll bar will appear in browser..means only half part of page is
currently visible to user. So I need to search keyword only in that
part. As
well as I need to continue search in next part if someones uses
scrollbar to move down page. Means ultimately it will find keyword in
only
visible part of HTML page and allowe me to handle
scrollbar
event. How can I do so ?
Hope I will get instant feedback.
Thanks in advance,
.
- Follow-Ups:
- Re: Search Keyword in HTML page
- From: Igor Tandetnik
- Re: Search Keyword in HTML page
- From: Igor Tandetnik
- Re: Search Keyword in HTML page
- Prev by Date: Re: Most Bizarre IE 6 HTML Bug Ever
- Next by Date: Re: how load html page from memory in ShowHTMLDialog function
- Previous by thread: how load html page from memory in ShowHTMLDialog function
- Next by thread: Re: Search Keyword in HTML page
- Index(es):
Relevant Pages
|
|