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