• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

JQuery Dailog

Simply need to convert this code to the jquery dialog equivalent.

<script type="text/javascript">
      $(function() {
            $("#confirmDelete").dialog({
                  bgiframe: true,
                  resizable: false,
                  height:140,
                  modal: true,
                  overlay: {
                        backgroundColor: '#000',
                        opacity: 0.5
                  },
                  buttons: {
                        'Do You Wish To Confirm Your Request To Delete This Item': function() {
                              $(this).dialog('close');
                        },
                        Cancel: function() {
                              $(this).dialog('close');
                        }
                  }
            });
      });
</script>
0
Glen_Mac
Asked:
Glen_Mac
1 Solution
 
basselkhCommented:
you can simply use jQuery UI:

http://docs.jquery.com/UI/Dialog


<script type="text/javascript" src="http://ui.jquery.com/testing/jquery-1.3.1.js"></script>
  <script type="text/javascript" src="http://ui.jquery.com/testing/ui/ui.core.js"></script>
  <script type="text/javascript" src="http://ui.jquery.com/testing/ui/ui.draggable.js"></script>
  <script type="text/javascript" src="http://ui.jquery.com/testing/ui/ui.resizable.js"></script>
  <script type="text/javascript" src="http://ui.jquery.com/testing/ui/ui.dialog.js"></script>
 
 
 
<script>
  $(document).ready(function(){
    $("#confirmDelete").dialog();
  });
  </script>
 
<div id="confirmDelete" title="Dialog Title">I'm in a dialog</div>

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now