4
<title>jQuery UI Dialog - Modal confirmation</title>
5
<link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
6
<script type="text/javascript" src="../../jquery-1.3.2.js"></script>
7
<script type="text/javascript" src="../../ui/ui.core.js"></script>
8
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
9
<script type="text/javascript" src="../../ui/ui.resizable.js"></script>
10
<script type="text/javascript" src="../../ui/ui.dialog.js"></script>
11
<script type="text/javascript" src="../../external/bgiframe/jquery.bgiframe.js"></script>
12
<link type="text/css" href="../demos.css" rel="stylesheet" />
13
<script type="text/javascript">
21
backgroundColor: '#000',
25
'Delete all items in recycle bin': function() {
26
$(this).dialog('close');
29
$(this).dialog('close');
40
<div id="dialog" title="Empty the recycle bin?">
41
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>These items will be permanently deleted and cannot be recovered. Are you sure?</p>
44
<!-- Sample page content to illustrate the layering of the dialog -->
45
<div class="hiddenInViewSource" style="padding:20px;">
46
<p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p>
48
<input value="text input" /><br />
49
<input type="checkbox" />checkbox<br />
50
<input type="radio" />radio<br />
52
<option>select</option>
54
<textarea>textarea</textarea><br />
56
</div><!-- End sample page content -->
58
</div><!-- End demo -->
60
<div class="demo-description">
62
<p>Confirm an action that may be destructive or important. Set the <code>modal</code> option to true, and specify primary and secondary user actions with the <code>buttons</code> option.</p>
64
</div><!-- End demo-description -->