Project

General

Profile

1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
	<meta charset="utf-8">
5
	<title>jQuery UI Dialog - Modal message</title>
6
	<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7
	<script src="../../jquery-1.4.3.js"></script>
8
	<script src="../../external/jquery.bgiframe-2.1.2.js"></script>
9
	<script src="../../ui/jquery.ui.core.js"></script>
10
	<script src="../../ui/jquery.ui.widget.js"></script>
11
	<script src="../../ui/jquery.ui.mouse.js"></script>
12
	<script src="../../ui/jquery.ui.button.js"></script>
13
	<script src="../../ui/jquery.ui.draggable.js"></script>
14
	<script src="../../ui/jquery.ui.position.js"></script>
15
	<script src="../../ui/jquery.ui.resizable.js"></script>
16
	<script src="../../ui/jquery.ui.dialog.js"></script>
17
	<link rel="stylesheet" href="../demos.css">
18
	<script>
19
	$(function() {
20
		// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
21
		$( "#dialog:ui-dialog" ).dialog( "destroy" );
22
	
23
		$( "#dialog-message" ).dialog({
24
			modal: true,
25
			buttons: {
26
				Ok: function() {
27
					$( this ).dialog( "close" );
28
				}
29
			}
30
		});
31
	});
32
	</script>
33
</head>
34
<body>
35

    
36
<div class="demo">
37

    
38
<div id="dialog-message" title="Download complete">
39
	<p>
40
		<span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
41
		Your files have downloaded successfully into the My Downloads folder.
42
	</p>
43
	<p>
44
		Currently using <b>36% of your storage space</b>.
45
	</p>
46
</div>
47

    
48
<!-- Sample page content to illustrate the layering of the dialog -->
49
<div class="hiddenInViewSource" style="padding:20px;">
50
	<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>
51
	<form>
52
		<input value="text input" /><br />
53
		<input type="checkbox" />checkbox<br />
54
		<input type="radio" />radio<br />
55
		<select>
56
			<option>select</option>
57
		</select><br /><br />
58
		<textarea>textarea</textarea><br />
59
	</form>
60
</div><!-- End sample page content -->
61

    
62
</div><!-- End demo -->
63

    
64

    
65

    
66
<div class="demo-description">
67
<p>Use a modal dialog to explicitly acknowledge information or an action before continuing their work.  Set the <code>modal</code> option to true, and specify a primary action (Ok) with the <code>buttons</code> option.</p>
68
</div><!-- End demo-description -->
69

    
70
</body>
71
</html>
(6-6/7)