darren884 — 2010-04-13T15:09:25-04:00 — #1
wyrd33 — 2010-04-13T16:00:54-04:00 — #2
In a nutshell:
document.formId.action = "http://third.party.service.com/script.php";
document.formId.inputName.value = "some value";
document.formId.submit(); // submit form
raffles — 2010-04-13T16:06:03-04:00 — #3
You can access the
document of an iframe:
var iframedoc = document.getElementById('the_iframe').contentWindow.document;
var inputs = iframedoc.getElementsByTagName('input');
// do stuff with inputs...
iframedoc.getElementsByTagName('form').submit(); // submit a form
I've never actually done this so I'm not sure if it'll work - I suspect not because of this:
darren884 — 2010-04-13T17:22:55-04:00 — #4
Hey guys couldn't use that method, seems its cross site scripting so I had to use the GET method.