| 1 | <html> |
|---|
| 2 | <head> |
|---|
| 3 | <style type="text/css"> |
|---|
| 4 | /* <![CDATA[ */ |
|---|
| 5 | @import url("http://o.aolcdn.com/dojo/1.1.1/dojo/resources/dojo.css"); |
|---|
| 6 | @import url("http://o.aolcdn.com/dojo/1.1.1/dijit/themes/tundra/tundra.css"); |
|---|
| 7 | /* ]]> */ |
|---|
| 8 | </style> |
|---|
| 9 | |
|---|
| 10 | <script type="text/javascript"> |
|---|
| 11 | |
|---|
| 12 | djConfig = { isDebug: false, parseOnLoad: true }; |
|---|
| 13 | |
|---|
| 14 | </script> |
|---|
| 15 | <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.1.1/dojo/dojo.xd.js"></script> |
|---|
| 16 | <script type="text/javascript"> |
|---|
| 17 | |
|---|
| 18 | dojo.require("dojo.parser"); |
|---|
| 19 | dojo.require("dijit.form.Button"); |
|---|
| 20 | dojo.require("dijit.form.Form"); |
|---|
| 21 | dojo.require("dijit.form.ValidationTextBox"); |
|---|
| 22 | dojo.require("dijit.Dialog"); |
|---|
| 23 | |
|---|
| 24 | function openDialog1() { |
|---|
| 25 | dijit.byId("test1").show(); |
|---|
| 26 | } |
|---|
| 27 | function openDialog2() { |
|---|
| 28 | dijit.byId("test2").show(); |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | dojo.addOnLoad(function() { |
|---|
| 32 | var foo1 = new dijit.Dialog({ title: "test1 dialog" },dojo.byId("test1")); |
|---|
| 33 | foo1.startup(); |
|---|
| 34 | |
|---|
| 35 | var foo2 = new dijit.Dialog({ title: "test2 dialog" },dojo.byId("test2")); |
|---|
| 36 | foo2.startup(); |
|---|
| 37 | }); |
|---|
| 38 | |
|---|
| 39 | </script> |
|---|
| 40 | |
|---|
| 41 | <title>dialog test</title> |
|---|
| 42 | </head> |
|---|
| 43 | |
|---|
| 44 | <body class="tundra"> |
|---|
| 45 | <td id="dialogButtonCell"><button id="dialogButton" dojoType="dijit.form.Button" type="button" onClick="openDialog1();">Open Dialog</button></td> |
|---|
| 46 | <div id="test1">test content 1 - press button to open another dialog |
|---|
| 47 | <input type="text" dojotype="dijit.form.ValidationTextBox" size="25" value="test1"> |
|---|
| 48 | <button id="dialogButton1" dojoType="dijit.form.Button" type="button" onClick="openDialog2();">Dialog2</button> |
|---|
| 49 | </div> |
|---|
| 50 | <div id="test2">test content 2 - try typing, and backspacing in FF and IE. |
|---|
| 51 | <input type="text" dojotype="dijit.form.ValidationTextBox" size="25" value="test2"> |
|---|
| 52 | </div> |
|---|
| 53 | </body> |
|---|
| 54 | </html> |
|---|