title: Output javascript to bootstrap 3 modal dialogue
body: <p>I've got the following code, which is working fine...</p>
  
  <p>But I'd like the web page that is returned when the widget is clicked to appear in a modal popup.</p>
  
  <p>I am using Bootstrap 3</p>
  
  <p>Tried a few things, but not making any progress, can someone help?</p>
  
  <pre><code>&lt;div class='login_box'&gt;
          loading...
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
  
          var clientkey = '@System.Configuration.ConfigurationManager.AppSettings["ClientKey"]'
  
          $(document).ready(function () {
  
  
              Widget.login({ 'app_key': Clientkey }, function (widget_html) {
  
                  $('login_box').html(widget_html);
              });
          });
      &lt;/script&gt;
  </code></pre>