Open a new window and submit a form with a single click
<p>when i click on submit button then :
<li>first : open a new window to display process (by ajax call)
<li>second : submit current form (processing time consuming job)</p>

<p>on Click of submit following JQuery function is being called :</p>

<pre><code>function submitForm(){
    window.open('displayGetStatus.action?id=' + p_id ); 
    $("#frmStartSomeTask").attr("action","executeDatabaseOperation.action").submit();
}
</code></pre>

<p><b>Result</b> : second window is opened and waiting for process to start but form on first window is not submitted so process is not started.</p>

<p>Please help how can i get this ?</p>

<p>Thanks in advance.</p>
