title: How to get a Overlay while showing a Pop up Window in MVC3?
body: <p>Hi all my overlay function is not getting fired when my popup window opens..don't know where am i doing wrong this is how i am calling my popupwindow in my MVC Application..i am using Fancy box as my Popup window</p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
     $(document).ready(function () {       
      $(".fancybox").fancybox({ modal: true
       });
      $(".fancybox").fancybox();
      });
  </code></pre>
  
  <p></p>
  
  <p><strong>Edit</strong></p>
  
  <p>changed the above script to</p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
     $(document).ready(function () {       
      $(".fancybox").fancybox({ modal: true
       });        
  </code></pre>
  
  <p></p>