jquery ui - dialog

 <?php
 jquery_ui_add('ui.dialog');
  drupal_add_js('$(document).ready(function(){
$("body").after("<div id=\'dialog\'></div>");
$('#dialog').dialog({autoOpen: false,draggable:true,width:500,modal: true,title: "title"});});', 'inline');
  $path = jquery_ui_get_path();
  drupal_add_css($path . '/themes/base/ui.all.css');
?>
 
 
  /* call dialog box with custom message */
  $('#dialog').text('Your message here').dialog('open');
Help Share this Article