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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB and Document Object Model (forcing Web/html actions)

Status
Not open for further replies.

cucswiz

Programmer
Jun 25, 2001
13
US
Hello experts, I'm hoping someone can help me with my problem.

I am working on a problem where I have to basically point to a webpage, find a textbox on that website, and input text into that textbox and "hit" the submit button. The basic goal is to save the resulting html page.

I have a good idea on how to do this as in most of it is done in Java already. However, the biggest problem that I ran into with Java is when the textbox uses a POST method to transfer the information from the textbox. It causes strange problems because different web developers do different and weird things (as in calling javascript functions in the submit). To my knowledge there really isnt a robust way to take care of these kinds of quirky problems.

Thus I am trying to move into Visual Basic to try to simulate this type of action. The only problem is that I've never really dealt with VB before so all the tutorials I've read online really deal with event driven things (as in you press this button and then it will run this code). However, it seems that I would be more likely to actually "force" the event in this case. I.e. input some informatio into the textbox, the "hit" the submit button..

I'm looking for some help out there if anyone has any experience with this kind of stuff in VB. I've taken a look at the Document Object Model and I think it lies somewhere there, but again I am extremeley unfamiliar with VB. Please, if you have any knowledge of doing somehting like this contact me or reply.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top