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