See http://blog.nemikor.com/2009/04/08/basic-usage-of-the-jquery-ui-dialog/
If you have any further questions, note there's a dedicated list for jQuery UI discussion: http://groups.google.com/group/jquery-ui - Richard On Tue, Oct 6, 2009 at 3:25 PM, webspee...@gmail.com <webspee...@gmail.com>wrote: > > Hey all. I'm trying to work with a dialog box and when the page has > been refreshed, the dialog box appears fine. But if I close it out and > try to open it again, it won't open. > > Here is the code I'm using. > > $(function() { > $("#quickAddDisplay").dialog({ > bgiframe: true, > resizable: false, > height:140, > width: 350, > modal: true, > overlay: { > backgroundColor: '#000', > opacity: 0.5 > }, > buttons: { > 'Carton ID': function() { > /* initGrids("cartonid"); */ > $(this).dialog('close') > }, > 'Order #': function() { > /* initGrids("orderid"); */ > $(this).dialog('close') > }, > } > }); > }); > > Any ideas? I'm using the dialog.js plugin.