jQuery dialog: external file load not working from button
<p>Could someone please tell me what is up with this code? I can't for the life of me see whats stopping it from working. If I set it to <code>autoOpen: true</code> it works, but getting it to open from the button does not seem to work! Many thanks in advance.</p>

<p><strong>Jquery:</strong></p>

<pre><code>$(document).ready(function () {
    $("#pextension").load('tour_extension_lb.aspx').dialog({ 
        bgiframe: true, 
        autoOpen: false, 
        position: 'center', 
        width: 440, 
        height: 300,
        modal: true,
    }); 

    $('a.extension-link').click(function () { $('#pextension').dialog('open'); return false; });     
});
</code></pre>

<p><strong>html:</strong></p>

<pre><code>&lt;a href="#" class="extension-link"&gt;OPEN EXTENSION DIALOG&lt;/a&gt;

&lt;div id="pextension" class="dialogBox" style="display:none;"&gt;&lt;/div&gt;
</code></pre>
