I want to fill in a whole form just by pressing on 1 button.
The code i used (local) for this is:
<script language="javascript">
<!--
function text()
{
parent.frames['iFrame'].document.getElementsByName('FormField')[0].value = "Text to put in formfield";
return true;
}
</script>
Thing is, the content i want to post, must go to a different domainname.
When i test the html file (with above code) locally, it puts all the information into the form (on the other website) succesfull.
When i upload the html (with above code) to my webserver and test it in (for example) InternetExplorer, it says "Access Denied" and refers to the line parent.frames.... etc.
That article is about C#, I presume, that means a server-side language, not Javascript language.
Javascript is a client-side language, thus it can not write/store data nor establish a cross-domain relationship. But you may do that on using AJAX+a server-side aplication+a database.
Bookmarks