Search Keyword in HTML page



Hello All,
It is a follow up for this post
http://groups.google.co.in/gro­up/microsoft.public.vc.mfc/bro­wse_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,

.



Relevant Pages

  • regex for replacing plain text within html string...
    ... i have a tricky problem and my regex expertise has reached its limit. ... preserve the html, and replace some of the plain text. ... problems because the keyword may appear in markup tags or attribute ... it essentially matches the keyword inside the inner text of a html tag ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Search Keyword in HTML page
    ... > Now I could highlight text using your code. ... But my further requirement is to exclude search for some HTML ... > search keyword in only visible part of browser. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: traversing a variable with regex instead of a file
    ... wouldn't surprise me if one of the Regex Gurus could do it even better ... > # no keyword links to be made inside valid HTML ...
    (perl.beginners)
  • http::geturl parse 1 line at a time after keyword?
    ... I'm trying to port a script that parses wunderground.com's html output. ... How to step through several lines after finding a keyword. ... set wzout [gets $wzsock] ... #hope this line doesn't word-wrap: ...
    (comp.lang.tcl)
  • Search Keyword in HTML Page
    ... Now I could highlight text using your code. ... But my further requirement is to exclude search for some HTML elements ... return TRUE for keyword "Email" though it is not present in content of real ...
    (microsoft.public.vc.mfc)