Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

webBrowser control to parse a web page

Status
Not open for further replies.

chals1

Technical User
Sep 3, 2003
73
ES
Hello
I know how to display an url using the webBrowser control but, how could i display only the content of a div avoiding or hiding ads and the rest of that page
Cheers
 
You'd either need to parse the data from the control (using whatever language you're using to build this app - which you've not said) and strip out the relevant content altogether... or try and insert your own styles to hide the relevant content (using JS, etc) - which you may not be able to do if the domains are different.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Sorry for the delay!!
You've pointed me into the right direction
I'm trying to use FBSL which is able to access DOM elements by embedding an internetexporer.application object
As you mentioned, i can insert my own css or javascript to load an url within a webbrowser control but i'd like them to be applied not only to this url but to all pages run by the user
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top