Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to capture form email and/or password with the web browser control ?

How to capture form email and/or password with the web browser control ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiontutorial
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    ldaoust
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • L ldaoust

      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

      L Offline
      L Offline
      ldaoust
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups