Topic awaiting preservation: Automatic Form Fill? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Richmond, VA |
posted 02-19-2003 16:42
I'm working on another project for an intranet based site at work. There are several Internet pages that we use on a regular basis at work that require a username and password. What I would like to find is a script that, when a link is clicked, will open the Internet page and automatically fill in the generic username and password for that particular page. Is this possible? If so, is it possible with javascript? |
Paranoid (IV) Inmate From: Den Haag, Netherlands |
posted 02-19-2003 16:51
code: document.forms[n].elements[m].value = theUserName;
code: <INPUT type=text id=uname value=''>
code: document.getElementById['uname'].value = theUserName;
|
Bipolar (III) Inmate From: Richmond, VA |
posted 02-19-2003 20:39
Thanks for the response trib but, if I'm understanding you correctly, the code you've included would have to be on the page that we're going to. The problem is I have no control over those pages. They're various Internet pages that aren't maintained by us. What I was asking was if there's a way to "throw" those generic usernames and passwords from our intranet page over to those pages. I may have misread what you're saying. Can I get some clarification? |
Paranoid (IV) Inmate From: Den Haag, Netherlands |
posted 02-19-2003 21:57
AFAIK there's no way to push data to an HTML page unless it's specifically set up to receive it. You CAN push data to the page which is called by the data entry page, using the usual method of adding parameters to the URL ... but my guess is that a password would be a bit too confidential for you to want to do something so insecure. code: <FORM METHOD=POST ACTION=http://www.thing.act> ... then check out the names of the input fields for the required fields. You can then construct a URL out of the action URL and use that as your start page e.g. code: http://www.thing.act?username=albert&password=lemme-in . It probably won't work, but that's the only way I could see of trying to do it. |
Bipolar (III) Inmate From: Richmond, VA |
posted 02-20-2003 00:45
That makes sense. I'll take a stab at it and let ya know how I make out. Thanks for the input trib. |