1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
---|
2 | "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
---|
3 | |
---|
4 | <html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en"> |
---|
5 | <head> |
---|
6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
---|
7 | <script type="text/javascript" src="../javascripts/prototype.js"> </script> |
---|
8 | <script type="text/javascript" src="../javascripts/effects.js"> </script> |
---|
9 | <script type="text/javascript" src="../javascripts/window.js"> </script> |
---|
10 | <script type="text/javascript" src="../javascripts/debug.js"> </script> |
---|
11 | <link href="../themes/default.css" rel="stylesheet" type="text/css"/> |
---|
12 | <link href="../themes/alert.css" rel="stylesheet" type="text/css"/> |
---|
13 | <link href="../themes/alphacube.css" rel="stylesheet" type="text/css"/> |
---|
14 | |
---|
15 | <title>dialog</title> |
---|
16 | |
---|
17 | </head> |
---|
18 | |
---|
19 | <body> |
---|
20 | <a href="#" onclick="Dialog.alert()">empty alert dialog</a> |
---|
21 | <br/> |
---|
22 | <a href="#" onclick="Dialog.confirm()">empty confirm dialog</a> |
---|
23 | <br/> |
---|
24 | <a href="#" onclick="Dialog.info()">empty info dialog</a> (does not make sense because you will have to reload the page) |
---|
25 | <br/> |
---|
26 | <br/> |
---|
27 | <br/> |
---|
28 | <br/> |
---|
29 | <a href="#" onclick="openAlert()">open alert dialog</a><br/> |
---|
30 | <a href="#" onclick="openConfirm()">open confirm dialog</a><br/> |
---|
31 | <a href="#" onclick="openAjaxConfirm()">open confirm dialog, dialog content is filled by an ajax call</a><br/> |
---|
32 | |
---|
33 | |
---|
34 | <script type="text/javascript"> |
---|
35 | function openAlert() { |
---|
36 | Dialog.alert("Add your <b>HTML</b> message here", {windowParameters: {className: "alphacube"}}) |
---|
37 | } |
---|
38 | |
---|
39 | function openConfirm() { |
---|
40 | Dialog.confirm("Add your <b>HTML</b> message here<br/>Better than a classic javascript alert?", |
---|
41 | {top: 10, width:250, className: "alphacube", okLabel: "Yes", cancelLabel:"No"}) |
---|
42 | } |
---|
43 | |
---|
44 | function openAjaxConfirm() { |
---|
45 | Dialog.confirm({url: "dialog_ajax.html", options: {method: 'get'}}, |
---|
46 | {top: 10, width:250, className: "alphacube", okLabel: "Yes", cancelLabel:"No"}) |
---|
47 | } |
---|
48 | </script> |
---|
49 | |
---|
50 | </body> |
---|
51 | </html> |
---|