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. Getting/Sending information to/from IE

Getting/Sending information to/from IE

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
3 Posts 2 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.
  • C Offline
    C Offline
    Cabadam
    wrote on last edited by
    #1

    OK, lets say there is an IE (or maybe Netscape too, although, that will be later) window open. The page it has loaded contains a form with several edit boxes. 1) Is there a way for me to get the source of that page straight from IE (NOT by downloading it again)? 2) Is there a way for me to either: a) Retrieve what information might be in those edit boxes? and b) Write info to those edit boxes? Adam cabadam@houston.rr.com

    R 1 Reply Last reply
    0
    • C Cabadam

      OK, lets say there is an IE (or maybe Netscape too, although, that will be later) window open. The page it has loaded contains a form with several edit boxes. 1) Is there a way for me to get the source of that page straight from IE (NOT by downloading it again)? 2) Is there a way for me to either: a) Retrieve what information might be in those edit boxes? and b) Write info to those edit boxes? Adam cabadam@houston.rr.com

      R Offline
      R Offline
      RobJones
      wrote on last edited by
      #2

      Hello, I have had the same types of ideas in the past and here is what I did to resolve them. I wrote some code that pulls the source html code from a provided url and dumps it to a text file.. I then parsed through the text file for the values I was looking for. (Getting the information in the edit boxes) To post items to the edit boxes... When you enter items to a text box/form and press submit they are run as (what I call) a url string. To simulate filling out the boxes and pressing submit you would need to first figure out what the string would be then execute it, for example.. Lets say you have a web site with a user name and password field plus a login button.. The url string could look something like this http://www.something.com/login.dll?username=Bonehead&password=mypass, this could be in a round about way, simulating the filling out of the edit boxes and pressing the login button. I can provide you with some source code if this sounds like a valid solution for you. Rob

      C 1 Reply Last reply
      0
      • R RobJones

        Hello, I have had the same types of ideas in the past and here is what I did to resolve them. I wrote some code that pulls the source html code from a provided url and dumps it to a text file.. I then parsed through the text file for the values I was looking for. (Getting the information in the edit boxes) To post items to the edit boxes... When you enter items to a text box/form and press submit they are run as (what I call) a url string. To simulate filling out the boxes and pressing submit you would need to first figure out what the string would be then execute it, for example.. Lets say you have a web site with a user name and password field plus a login button.. The url string could look something like this http://www.something.com/login.dll?username=Bonehead&password=mypass, this could be in a round about way, simulating the filling out of the edit boxes and pressing the login button. I can provide you with some source code if this sounds like a valid solution for you. Rob

        C Offline
        C Offline
        Cabadam
        wrote on last edited by
        #3

        This won't work for me- I need to manipulate a page that the user will already have open. I will not actually be submitting the information, and I can't retrieve the HTML from the server again. I need to see what IE itself has retrieved. The code will have come from a CGI script that output would differ if I simply gave it the URL. Adam cabadam@houston.rr.com

        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