how to auto submit a frame using javascript
<p>HI
I have two frames, frame1 has few input text box and a submit .
on submit, frame2 shoudl display contents.
it is working on manual text enter and submit.
i am trying to make a auto submit . (i want the contents of a file to be continuously displayed in frame2 like unix tail cmd )</p>

<p>i wrote a function like</p>

<pre><code>function refreshMe() {
setTimeout('refreshMe()', 5000);
var frm = document.getElementById("_form_");
frm.method="post"
 frm.action = "xyz.pl";
 frm.target="frame2"
 frm.submit() 
}
</code></pre>

<p>it is not working properly.
any idea ?</p>

<p>Edit:
I found out after commenting few code,
1) that the timer part is working fine.
but browser hangs only if I submit form
2) and document.forms["<em>form</em>"].submit()  is not working properly(it submits but with NULL values of all elements)</p>

<p>SO i tried using document.forms["<em>form</em>"].Submit.click()
it works but browser hangs after few (say 10 ) times of auto submit</p>

<p>Any idea please</p>
