javascript post
<p>i have a javascript function, that i use to open a new window, post a form in this new window and check the results there. The code work fine in IE7, but don't work in FF3. Somebody knows why? I call this function in a button Onclick event:</p>

<pre><code>function OpenEdit(id){
var sData;
var sDomain = "http://foobar.org/index.php?";
sData = "&lt;form name='editUser' id='editUser' action='" + sDomain + "page=adm/update' method='post'&gt;";
sData = sData + "&lt;input type='hidden'  name='id' value='" + id + "'/&gt;";
sData = sData + "&lt;/form&gt;";
sData = sData + "&lt;script type='text/javascript'&gt;document.editUser.submit();&lt;/scr" + "ipt&gt;";
OpenWindow=window.open("", "newwin");
OpenWindow.document.write(sData);
OpenWindow.document.close();
}
</code></pre>

<p>Regards,
Victor</p>
