Note that there are some explanatory texts on larger screens.

plurals
  1. POMove jQuery dialog popup anywhere outside of the parent window
    primarykey
    data
    text
    <p>I have a jQuery UI Dialog popup done, and the only issue I have now is that I am unable to move it outside of the containing window. I want to be able to move this dialog popup much like a window that you create using javascript's window.open method (which can be moved anywhere in the screen)</p> <p>Any suggestions, or ideas? I have tried the containment property buy still not going outside of the parent screen.</p> <hr> <h3>Code:</h3> <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" /&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function (){ $('#dialog').dialog({ draggable: true, resizeable: true, dialogClass: 'main-dialog-class', title: 'Definition', width: 800, height: 600, autoOpen: false, show: { effect: "clip", duration: 1000 }, hide: { effect: "explode", duration: 1000} }) $(".opener").click(function () { $('#dialog').dialog("open"); return false; }); if (!$.ui.dialog.prototype._makeDraggableBase) { $.ui.dialog.prototype._makeDraggableBase = $.ui.dialog.prototype._makeDraggable; $.ui.dialog.prototype._makeDraggable = function () { this._makeDraggableBase(); this.uiDialog.draggable("option", "containment", false); }; } }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="dialog" title="Report Definition" style="width:800px; height:800px; overflow:scroll;"&gt; &lt;p&gt;This is an animated dialog which is useful for displaying information &lt;/p&gt; &lt;/div&gt; &lt;a href="#" class="opener" &gt; click &lt;/a&gt; &lt;/body&gt; &lt;/html&gt; </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.
 

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