Link to home
Start Free TrialLog in
Avatar of MikeThelwall
MikeThelwall

asked on

Web browser control and form fields

I would like to be able to access and alter the contents of HTML form fields in the web browser control. I would also like to be able to react to the user clicking on a form field.
It is for a custom IE5 in which the users will not have access to a keyboard. I will hopefully be providing a clickable vb keyboard, activated when a form field is clicked on, and then will copy the keys to the appropriate form field.
I can click on a submit button with VB, but have not found any way of changing the contents of a page or HTML of a page, short of modifying and reloading the whole page - which I don't want to do.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

I don't know much about it but isn't it what DHTML is supposed to do?
Avatar of mark2150
mark2150

I would think that you would have a separate entry field along the top or bottom. You fill it with your virtual keystrokes and then have them click on a VB button [Send]. You then send the string to the server as a CGI script so that VB is doing the work and not the HTML.

You might be able to send a message to the web control every time the user clicks on the virtual keyboard.

Sounds cumbersome in either case.

M
Have done this in the past but stopped using it because it was to difficult to get 100% correct. Frames were killing the system.
Avatar of MikeThelwall

ASKER

Thanks for the comments. I cant do anything to the web pages because this has to work for a set of web pages that I do not have control over - not the whole Internet but a couple of thousand pages on a few different sites.

Mirkwood, I would love to see how you did it. I might be able to live with a system that occasionally crashed if that is the best that is possible.
I want to get this straight ... do you just need to fill information into input boxes on the HTML form?

If that's the case, I'll post some code for you, its really not tough code, just tough to find the docs for how to do it!
Yes - I will launch IE5 through the web browser control and allow the user to browse (a section of) the Internet at will by clicking on links. When they want to fill in a form I need to be able to intercept the click on the form and launch a clickable VB keyboard so they can enter information with this. I need to be able to copy the keys they type with the keyboard into the form field.

So I need to intercept a click on a form and fill in information directly into the boxes.
ASKER CERTIFIED SOLUTION
Avatar of vettranger
vettranger

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
Brilliant, thanks!!!. - I'd tried outerHTML but it seemed  to  be read only. I didn't think of trying innerHTML in this way.
It took me a lot of trial and error to get it myself! LOL