title: Microsoft JScript runtime error: Object doesn't support property or method 'dialog'
body: <p>I am using an .ascx user control where i populating employee data along with employee picture.
  while on clicking employee picture i want to display a dialog where i want to have one text field and a text box for input from user. Click event is firing fine but with dialog it gives me the error of "Microsoft JScript runtime error: Object doesn't support property or method 'dialog'". Could please anyone help me to populate a dialog with a text field and text box. I am really new to the JQUERY and struggling to get it work.</p>
  
  <p>In the following code snippet i have added a dialog code from one of the example i found online.</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="OpenAccessDataProvider,a4a794260c0b4440b466f75d11146db8.ascx.cs" Inherits="SitefinityWebApp.SfCtrlPresentation.OpenAccessDataProvider_a4a794260c0b4440b466f75d11146db8" %&gt;
  &lt;%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %&gt;
  &lt;%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %&gt;
  &lt;%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Comments" Assembly="Telerik.Sitefinity" %&gt;
  &lt;%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Fields" Assembly="Telerik.Sitefinity" %&gt;
  &lt;%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %&gt;
  &lt;%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %&gt;
  
  &lt;telerik:RadListView ID="dynamicContentListView" ItemPlaceholderID="ItemsContainer" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"&gt;
      &lt;LayoutTemplate&gt;
          &lt;ul class="sfitemsList sfitemsListTitleDateTmb"&gt;
              &lt;asp:PlaceHolder ID="ItemsContainer" runat="server" /&gt;
          &lt;/ul&gt;
      &lt;/LayoutTemplate&gt;
  
          &lt;ItemTemplate&gt;
        &lt;li class="sfitem sfClearfix"&gt;
              &lt;h2 class="sfitemTitle"&gt;
                  &lt;sf:DetailsViewHyperLink ID="DetailsViewHyperLink" TextDataField="Title" runat="server" /&gt;
              &lt;/h2&gt;
             &lt;sf:AssetsField ID="AssetsField1" runat="server" DataFieldName="Picture" /&gt;
             &lt;sf:SitefinityLabel ID="SitefinityLabel1" runat="server" Text='&lt;%# Eval("Designation")%&gt;'  WrapperTagName="div" HideIfNoText="true" CssClass="sfitemShortTxt" /&gt;           
            &lt;sf:SitefinityLabel ID="SitefinityLabel2" runat="server" Text='&lt;%# Eval("CompanyName")%&gt;' WrapperTagName="div" HideIfNoText="true" CssClass="sfitemShortTxt" /&gt;
            &lt;sf:AssetsField ID="AssetsField2" runat="server" DataFieldName="Documents"/&gt;
        &lt;/li&gt;
      &lt;/ItemTemplate&gt;
  &lt;/telerik:RadListView&gt;
  
  &lt;sf:Pager id="pager" runat="server"&gt;&lt;/sf:Pager&gt;
  
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $(".sfClearfix .sfimageWrp img").click(function () {
  
  //            $(document).ready(function () {
                  var $dialog = $('&lt;div&gt;&lt;/div&gt;')
          .html('This dialog will show every time!')
          .dialog({
              autoOpen: false,
              title: 'Basic Dialog'
          });
  
                  $('#opener').click(function () {
                      $dialog.dialog('open');
                      // prevent the default action, e.g., following a link
                      return false;
                  });
  //            });
  
              //alert("HEY THERE " + $(this).attr("src")); 
          });
      });
  &lt;/script&gt;
  
  Regards.
  </code></pre>