Lanch simpledialog manually
<p>How can I throw a simpledialog manually from a js function? </p>

<pre><code>&lt;div id="loading_dialog_div"&gt;&lt;img src="img/indicator.gif" alt="" /&gt;&lt;/div&gt;
&lt;a href="#" onclick="return addCustomer()" class="button pill simpledialog" rel="loading_dialog_div"&gt;Add customer&lt;/a&gt;
</code></pre>

<p>Since I need to perform an ajax request an I'd like to show the progress bar with the simpledialog once it starts, I need to launch manually with the beforeSend parameter.
Any idea? Is it possible? </p>
