onClose event is not called on cancel click in simple modal...when i am loading another jquery dialog on simple modal?
<p>I am using Eric martin simple modal (1.3)to show some dynamic data (table) this table is clickable (when i click cells of table which i am showing on simple modal) , I am showing another popup jquery dialog which is also showing some content.....here i got  the problem .
 After my 2nd popup (jquery dialog) when i am closing my simple modal window onClose event is not called and not closing modal window.</p>

<pre><code>// My main jsp page lil code snippet
     &lt;script&gt; 
         $("#eric").modal({
             onShow: function(){alert("show");},
             onClose: function(){alert("close ");
             $.modal.close(); }
         });
     &lt;/script&gt;

     &lt;body&gt;
         &lt;div id="eric"&gt;&lt;/div&gt;
         &lt;div id="rfi"&gt;&lt;/div&gt;
     &lt;/body&gt;

 // showing this dialog over simple modal dialog
        $("#rfi").dialog({
             //some dynamic data ajax call writing on dialog
              $("rfi").html(data);
         });
</code></pre>

<p>please help me i had already spent 3 days on this......:(</p>
