Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I dug around and found this Tutorial-<a href="http://net.tutsplus.com/tutorials/javascript-ajax/creating-a-windows-like-interface-with-jquery-ui/" rel="nofollow">Create a Windows-like Interface with jQuery UI</a></p> <p>here is the <a href="http://jsfiddle.net/apaul34208/UXmRA/" rel="nofollow">jsFiddle</a> and the code-</p> <pre><code> var _init = $.ui.dialog.prototype._init; $.ui.dialog.prototype._init = function() { _init.apply(this, arguments); var dialog_element = this; var dialog_id = this.uiDialogTitlebar.next().attr('id'); this.uiDialogTitlebar.append('&lt;a href="#" id="' + dialog_id + '-minbutton" class="ui-dialog-titlebar-minimize ui-corner-all"&gt;'+ '&lt;span class="ui-icon ui-icon-minusthick"&gt;&lt;/span&gt;&lt;/a&gt;'); $('#dialog_window_minimized_container').append( '&lt;div class="dialog_window_minimized ui-widget ui-state-default ui-corner-all" id="' + dialog_id + '_minimized"&gt;' + this.uiDialogTitlebar.find('.ui-dialog-title').text() + '&lt;span class="ui-icon ui-icon-newwin"&gt;&lt;/div&gt;'); $('#' + dialog_id + '-minbutton').hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }).click(function() { dialog_element.close(); $('#' + dialog_id + '_minimized').show(); }); $('#' + dialog_id + '_minimized').click(function() { $(this).hide(); dialog_element.open(); }); }; $(document).ready(function() { $('#create_button').button().click(function() { var create_dialog = $('#dialog_window_1'); var create_button = $(this); if( create_dialog.dialog('isOpen') ) { create_button.button('option', 'label', 'Create a new Window'); create_dialog.dialog('close'); } else { create_button.button('option', 'label', 'Close Window'); create_dialog.dialog('open'); } }); $('#dialog_window_1').dialog({ width: 'auto', height: 'auto', autoOpen : false, buttons: [ { text: 'Create', click: function() { var div_count = $('.dialog_window').length + 1; var div_id = 'dialog_window_' + div_count; var div_title = $('#new_window_title').val(); var div_content = $('#new_window_content').val(); var buttons = new Array(); if( $('#alertbutton').is(':checked') ) { buttons.push({ text: 'ALERT', click: function() { alert('ALERTING from Dialog Widnow: ' + div_title); } }); } if( $('#closebutton').is(':checked') ) { buttons.push({ text: 'CLOSE', click: function() { $('#' + div_id).dialog('close'); } }); } $('body').append('&lt;div class="dialog_window" id="' + div_id + '"&gt;' + div_content + '&lt;/div&gt;'); var dialog = $('#' + div_id).dialog({ width: 'auto', height: 'auto', title : div_title, autoOpen : true, buttons: buttons }); } } ] }); $('#buttonlist').buttonset(); });` </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload