title: jquery Dialog open if recordset is empty?
body: <p>I am trying to use a Dialog within my webpage. I have a recordset which returns a email address.</p>
  
  <p>I would like for the Dialog only to open if the recordset is empty.</p>
  
  <p>This is Script so fare</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
    $(function() {
      $( "#dialog-message" ).dialog({
        modal: true,
     autoOpen: false,
        buttons: {
          Ok: function() {
            $( this ).dialog( "close" );
          }
        }
      });
    });
    });
    &lt;/script&gt;
  
  
  &lt;div id="body"&gt;
  
   &lt;% If Email.EOF And Email.BOF Then %&gt;
  
  &lt;div id="dialog-message" title="Error No Email address found"&gt;
                &lt;p&gt;&lt;span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"&gt;&lt;/span&gt; Error, you don't have an email address linked to your account. &lt;/p&gt;
                &lt;p&gt; You cannot request this report&lt;/b&gt;. &lt;/p&gt;
              &lt;/div&gt;
  
   &lt;% End If ' end Email.EOF And Email.BOF %&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>Any help would be great..... PS. .. i'm doing this in dreamweaver (so noob)...</p>