Search Keyword in HTML Page
- From: "Ajay" <ajay@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Jun 2005 12:35:28 +0530
Hello All,
It is a follow up for this post
http://groups.google.co.in/group/microsoft.public.vc.mfc/browse_thread/thread/63e691c4d9b3d33d/12d1fe47c1a63a25?q=jeff+partch+HTML+Search&rnum=5&hl=en#12d1fe47c1a63a25
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,
Regards,
Ajay Sonawane
(Webtech Developers Pvt.Ltd, Pune)
.
- Prev by Date: Re: menu handler
- Next by Date: Enter in the CWebBrowser2
- Previous by thread: menu handler
- Next by thread: Enter in the CWebBrowser2
- Index(es):
Relevant Pages
|