Click to See Complete Forum and Search --> : How do you send data to a Input Box on a website?
qpabani
Dec 7th, 2000, 09:15 PM
Hello. I have a webbrowser on my form, and I want to know how its possible to send data to input boxes on the webbrowser - kind of like a "autofiller" - something like what Gator does or what MSIE does when you have a stored password, it puts it in for you. What I want to do is read the HTML, and locate statements such as <input type="text" maxchars=21 name="email">, and then automatically (or by using a command button) send data that is already defined in a file, or in the Text1.text Text2.text, etc in the form itself. There is a good example of what Im trying to accomplish at http://www.roboform.com, except I cant exactly use roboform on my webbrowser in my form :). So, does anyone know how to do this?? Ive heard I have to locate the webbrowser using API, and then use SetText (also API), but have no clue on how to do this :). If anyone knows, dont hesitate to post below.
thanks :)
AAlkadi
Dec 11th, 2000, 02:16 AM
I f you to create the form in your web page using scripts i.e. using ASP. Then by rewriting the form eveytime you want to display a new field value.
Example:
Response.write "<Form Action=...... Method=post>"
Response.write "<Input Type= text Name=text1 value=newvalue>"
response.write "</Form>"
I hope this help, lookup MSDN for more info.
Saberwolf
Dec 11th, 2000, 02:42 PM
i think u can accomplish this.. like this :) :
create a WebBrowser control on ur app. and make a timer and a Button..
in the buton put this :
WebBrowser1.Navigate "http://www.roboform.com"
Timer1.Interval= 1000
then in the timer1 put in this :
If WebBrowser1.Busy = False Then 'Wait until browser has loaded the page
Timer1.Interval = 0 'Disable the Timer
WebBrowser1.Document.Forms(0).email.Value = "MyEmail@Uhhh.com"
End if
u can add more actions.. affcors and randomize some stuff accordingly hope this help's ;)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.