How to capture form email and/or password with the web browser control ?
-
Using Visual C++ and web browser control (CDHTMLDialog). I would like to do the same thing as IE or FF does. Capture email and password on a form when user clicks submit. I noticed that when the user clicks a button or input that would submit a form, Firefox asks the user if he wants FF to save the password. I want to reproduce the same behaviour using the web browser control. I think it boils down to 'how can I detect that a form is being submited ?'
Louis.
"Ambition without knowledge is like a boat on dry land" -Mr. Miyagi
-
Using Visual C++ and web browser control (CDHTMLDialog). I would like to do the same thing as IE or FF does. Capture email and password on a form when user clicks submit. I noticed that when the user clicks a button or input that would submit a form, Firefox asks the user if he wants FF to save the password. I want to reproduce the same behaviour using the web browser control. I think it boils down to 'how can I detect that a form is being submited ?'
Louis.
"Ambition without knowledge is like a boat on dry land" -Mr. Miyagi
Hi myself, * For anyone who is interrested, I managed to do it this way: 1) I can receive mesages when a user clicks on elements in the page. So, i handle clickin on and tags. If the type attribute is submit (buttons and inputs) or image (inputs), then it is about to submit the form. 2) Get the form object, get the email and password input fields and retrieve their values. I am not sure if this is how the browsers do it, but seems to work fine for me.
Louis.
"Ambition without knowledge is like a boat on dry land" -Mr. Miyagi