How to load contents in `window.showModalDialog()`?
<p>I want to show the contents, which i am loading form the server into a <code>div</code> using <code>jquery load()</code> </p>

<p>function, in the javascripy <code>window.showModalDialog()</code>. My code :</p>

<pre><code>$("#templatecontainer").load("/Temp/GetTemp", { temp: $("#temp").val(), 
   function (response, status, xhr) {
       /* code execute after loading the contents */
});
</code></pre>

<p>I know that there is a <code>URL</code> parameter in <code>window.showModalDialog(url)</code> but in my case i am passing some data to server for loading the contents from the server and after loading i have some code to execute in the callback funtion. So these options <code>(data passing &amp; callback funtion)</code> are not present in <code>window.showModalDialog(url)</code>. Help me out please?</p>
