title: How to create inline dialog in MS CRM 2013
body: <p>MS CRM 2013 introduced new approach to dialogs opened inside the system. In version 2011 look-ups were opened as separate (modal) windows, but in 2013 look-ups are opened as inline iframes on current page.</p>
  
  <p>Definitely it's possible via following jQuery statements:</p>
  
  <pre><code>$('body').append("&lt;div id='InlineDialog_Background' class='ms-crm-InlineDialogBackground' tabindex='0' style='position: absolute; width: 100%; height: 100%; top: 0px; background-color: rgb(128, 128, 128); z-index: 1005; opacity: 0.5;'&gt;&lt;/div&gt;");
  $('body').append("&lt;div id='InlineDialog' class='ms-crm-DialogChrome' tabindex='1' style='position: absolute; top: 50%; left: 50%; z-index: 1006; margin-top: -240px; margin-left: -400px; height: 540px; width: 800px;'&gt;&lt;iframe id='InlineDialog_Iframe' name='InlineDialog_Iframe' src='custom_url' style='height: 540px; width: 800px; border: 0px;'&gt;&lt;/iframe&gt;&lt;div id='DialogLoadingDiv' style='position: absolute; background-color: white; height: 480px; width: 800px; top: 50%; left: 50%; margin-top: -240px; margin-left: -400px; z-index: 1007; display: none;'&gt;&lt;table class='ms-crm-LoadingContainer' style='width:100%;height:100%'&gt;&lt;tbody&gt;&lt;tr class='ms-crm-LoadingContainer'&gt;&lt;td style='vertical-align: middle' align='center'&gt;&lt;img id='DialogLoadingDivImg' alt='' src='/_imgs/AdvFind/progress.gif'&gt;&lt;br&gt;Loading...&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;");
  </code></pre>
  
  <p>But it also requires some additional routines to close such dialog properly.</p>
  
  <p>Is there any Microsoft-provided javascript methods to open such a <code>iframe</code>?</p>