Refresh Iframe when the Dialog modal Closes
<p>Im new to Jquery Dialogs and Iframes and I just want to Ask if can i Refresh a Static Iframe when the Dialog Modal Closes.</p>

<p>Heres the Static Iframe:
    </p>

<pre><code>                    &lt;iframe id="frameUserInfo" src="/User/UserInfo" style="border: none; width: 100%;
                        min-height: 220px;"&gt;&lt;/iframe&gt;
                &lt;/div&gt;
</code></pre>

<p>And this is my Jquery Dialog</p>

<pre><code>$("#dialogAddPhone").dialog({
            autoOpen: false,
            resizable: false,
            modal: true,
            width: 700,
            height: 700,
            position: ['center', 40],
            close: function (event, ui) {
                $('#dialogAddPhone').attr('src', '');
            }
        });
</code></pre>

<p>I Tried adding This <code>$('#frameUserInfo').reload(true);</code> but its not working</p>

<p>just want to give you a better picture, In my Parent window, theres a static Iframe that contains a button that opens the <code>$("#dialogAddPhone")</code> the click event is being called at <code>/User/UserInfo</code> </p>

<p>This one is in the Parent Window:</p>

<pre><code>&lt;div id="dialogAddPhone" title="Document Upload" style="overflow-y: hidden;"&gt;
    &lt;iframe id="myIframeAddPhone" src="" style="border: none; width: 100%; height: 100%;"&gt;
    &lt;/iframe&gt;
&lt;/div&gt;
</code></pre>

<p>Then this is the Open Event in the Static IFrame in <code>User/UserInfo</code></p>

<pre><code>loadIframe('myIframeAddPhone', href);
 parent.$("#dialogAddPhone").dialog("open");
 return false;
</code></pre>

<p>Then after Closing the Dialog , it should refresh the Iframe only of the <code>frameUserInfo</code></p>

<p>Thanks! :)</p>