-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialog.php
138 lines (119 loc) · 3.37 KB
/
dialog.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
<title>jQuery UI Example Page</title>
<link type='text/css' href='css/ui-lightness/jquery-ui-1.8.23.custom.css' rel='stylesheet' />
<script type='text/javascript' src='js/jquery-1.8.0.min.js'></script>
<script type='text/javascript' src='js/jquery-ui-1.8.23.custom.min.js'></script>
<script type='text/javascript'>
$(function(){
// Accordion
$('#accordion').accordion({ header: 'h3' });
// Tabs
$('#tabs').tabs();
// Dialog
$('#dialog').dialog({
autoOpen: false,
width: 600,
open: function(){
$('#dialog').open('index.php');
},
buttons: {
'Minimize' : function(){
$(this).dialog('close');
},
'Ok': function() {
$(this).dialog('close');
},
'Cancel': function() {
$(this).dialog('close');
}
}
});
// Dialog Link
$('#dialog_link').click(function(){
$('#dialog').dialog('open');
return false;
});
// Datepicker
$('#datepicker').datepicker({
inline: true
});
// Slider
$('#slider').slider({
range: true,
values: [17, 67]
});
// Progressbar
$('#progressbar').progressbar({
value: 20
});
//hover states on the static widgets
$('#dialog_link, ul#icons li').hover(
function() { $(this).addClass('ui-state-hover'); },
function() { $(this).removeClass('ui-state-hover'); }
);
$('#dialog2').dialog({
autoOpen: false,
width: 600,
buttons: {
'Ok': function() {
$(this).dialog('close');
},
'Cancel': function() {
$(this).dialog('close');
}
}
});
// Dialog Link
$('#dialog_link2').click(function(){
$('#dialog2').dialog('open');
return false;
});
});
function foo()
{
$('#dialog').dialog('close');
$('#dialog').dialog({
autoOpen: false,
width: 600,
buttons: {
'Minimize' : function(){
$(this).dialog('close');
},
'Ok': function() {
$(this).dialog('close');
},
'Cancel': function() {
$(this).dialog('close');
}
}
});
$('#dialog').dialog('open');
}
</script>
<style type='text/css'>
/*demo page css*/
body{ font: 62.5% 'Trebuchet MS', sans-serif; margin: 50px;}
.demoHeaders { margin-top: 2em; }
#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
ul#icons {margin: 0; padding: 0;}
ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;}
ul#icons span.ui-icon {float: left; margin: 0 4px;}
</style>
</head>
<body>
<h2 class='demoHeaders'>Dialog</h2>
<p><a href='#' id='dialog_link' class='ui-state-default ui-corner-all'><span class='ui-icon ui-icon-newwin'></span>Open Dialog</a></p>
<h2 class='demoHeaders'>Dialog2</h2>
<p><a href='#' id='dialog_link2' class='ui-state-default ui-corner-all'><span class='ui-icon ui-icon-newwin'></span>Open Dialog</a></p>
<!-- ui-dialog -->
<div id='dialog' title='papu'>
<div onClick='foo()'><iframe src="http://www.facebook.com" style='width:100%;height:100%;'></iframe></div>
</div>
<div id='dialog2' title='hi'>
<p> shivam</p>
</div>
</body>
</html>