Link to home
Start Free TrialLog in
Avatar of Form_Glow
Form_Glow

asked on

IE Document (Object Model)

Hello,
I have a niece that is very curious...and loves the net.
I need to parse an IE document for keywords (Webbrowser control in my app)..before it loads...is this possible? Basically I'm attempting a mini filtered browser.
Thanks
Avatar of svaik
svaik

>>I need to parse an IE document for keywords (Webbrowser control in my app)..before it loads

if you want to be able to manipulate what is displayed, you will want to find an alternative means of grabbing the information, parsing/manipulating that content, and then writing it to the browser object.  this is b/c you cannot manipulate content inside of a browser object until the document is fully loaded...which would seem to defeat the purpose of what you are trying to do.
Avatar of Form_Glow

ASKER

I don't really need to manipulate any data...just prevent it from being displayed if a certain condition is met.
What if I changed the visibility = false...until I get the whole document and check it...and visible = true it if it's acceptable...?
Maybe using 2 controls...
yes that is one way people have approached it (using its visibility)
I've seen some of your awesome IE posts....
Can you give me a small example of just creating the instance of IE and grabbing the whole document to a variable or textbox...
Thanks
ASKER CERTIFIED SOLUTION
Avatar of AzraSound
AzraSound
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Works great...
Do you have any IE Object links (with comprehensive event and constant doc's)?
I'm thinking I'll have to skin my instance of IE to make it a little more "kid" friendly.
Thanks
not a ton of info about it on the web that i am aware of...best documentation i know of is on msdn:

http://msdn.microsoft.com/workshop/browser/webbrowser/reference/Objects/WebBrowser.asp