View Full Version : filling and submitting forms in a different frame

Apr 17th, 2005, 07:55 AM
ok, this may seem foolish, but here goes... there's a website I often visit that requires the user to enter a username and password to enter, unfortunately, the site does not use cookies to store this info for next time. I want to write a simple set of 2 htmls (one frameset, one 0-size frame) that I can keep locally such that frameset html has 2 frames, one size zero, one the site i wish to enter. I want the zero size frame to put my data into their form onload and hit the submit... my question is, can js access the form fields and submit function of another frame, when that frame is not local? if so, how?

Apr 17th, 2005, 08:12 AM
make a copy of the page and bookmark it.
you would essentially copy/paste the <form> and fill in the desired default values.. or.. there are apps that you can get to auto populate forms. if you use Firefox there is an extension called AutoForm.

Apr 17th, 2005, 08:54 AM
i've already looked into such things, but the method i specified would be best for this situation... the login is asked for on every page of the site, and i don't want to do anything to fill it out.

Apr 18th, 2005, 12:51 PM
Save this as a bookmarklet and run it everytime you are asked for username and password in your favorite site.

Of course, you need to change the field names and values accordingly.