Can I run setTimeout / setInterval inside $.submit()?
<p>Am I doing this right?</p>

<pre><code>var jForm= $("form:first");
jForm.submit(function( objEvent ) { setTimeout(somefunction(),500) });
</code></pre>

<p>The form is used to upload a file using an invisible iFrame. The above attempt has led me to an infinite loop for some reason...</p>

<p>I will really wish to know if I am able to call a function with setTimeout while manipulating submit with jQuery. </p>

<p>Note: I have previously raised <a href="http://stackoverflow.com/questions/4491416/jquery-file-upload-to-remote-ftp-leads-to-infinite-loop">this question</a>, but I suppose I have included way too much information for my question. </p>
