|
-
Oct 8th, 2000, 08:08 PM
#1
I have a small application that has a form with web browser control in it. I have that control load my webpage when the form is loaded.
The webpage is a small feedback form. How do I make my application fill in some fields on the form?
I want it to fill in 2 text fields on the webpage upon loading the page. They are "first_name" and "last_name"
-Simon
-
Oct 9th, 2000, 03:04 AM
#2
Fanatic Member
Code:
'navigate to form
WebBrowser1.Navigate "http://www.mysite.com"
'wait till page loads
Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop
'Fill in form
WebBrowser1.Document.Forms(0).first_name.Value = "D!m"
WebBrowser1.Document.Forms(0).last_name.Value = "Have no clue"
'Submit
WebBrowser1.Document.Forms(0).enter.Click
'enter = name of submit button
Gl,
D!m
-
Oct 9th, 2000, 08:59 AM
#3
THANK YOU! THANK YOU! THANK YOU!
-Simon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|