| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | |
| 5 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
| 6 | |
| 7 | <title>Dojo Toolkit - Background Iframe test</title> |
| 8 | |
| 9 | <script type="text/javascript" src="boilerplate.js"></script> |
| 10 | |
| 11 | <script type="text/javascript"> |
| 12 | require([ |
| 13 | "dojo/parser", |
| 14 | "dijit/Dialog", |
| 15 | "dijit/DropDownMenu", |
| 16 | "dijit/MenuItem", |
| 17 | "dijit/form/DateTextBox", |
| 18 | "dijit/form/Button", |
| 19 | "dijit/Tooltip", |
| 20 | "dojo/domReady!" |
| 21 | ], function(parser){ |
| 22 | parser.parse(); |
| 23 | }); |
| 24 | </script> |
| 25 | |
| 26 | </head> |
| 27 | <body class="claro"> |
| 28 | <span data-dojo-type="dijit/Tooltip" data-dojo-props='connectId:["one_pdf"]'> |
| 29 | This is one tooltip. |
| 30 | </span> |
| 31 | <span data-dojo-type="dijit/Tooltip" data-dojo-props='connectId:["two_pdf"]'> |
| 32 | This is another tooltip. A little longer... |
| 33 | </span> |
| 34 | <span data-dojo-type="dijit/Tooltip" data-dojo-props='connectId:["one_flash"]'> |
| 35 | This is one tooltip. |
| 36 | </span> |
| 37 | <span data-dojo-type="dijit/Tooltip" data-dojo-props='connectId:["two_flash"]'> |
| 38 | This is another tooltip. A little longer... |
| 39 | </span> |
| 40 | <button id="showDialog" data-dojo-type="dijit/form/Button"> |
| 41 | Show Dialog |
| 42 | <script type="dojo/connect" data-dojo-event="onClick"> |
| 43 | dialog.show(); |
| 44 | </script> |
| 45 | </button> |
| 46 | <table> |
| 47 | <tr> |
| 48 | <td></td> |
| 49 | <td> |
| 50 | <input id="dateText_pdf" data-dojo-type="dijit/form/DateTextBox" data-dojo-props='type:"text" '/> |
| 51 | <button id="menuButton_pdf" title="edit title" value="Edit" data-dojo-type="dijit/form/DropDownButton" data-dojo-props='iconClass:"noteIcon"'> |
| 52 | <span>Edit<b>!</b></span> |
| 53 | <span id="menu_pdf" data-dojo-type="dijit/DropDownMenu" > |
| 54 | <span id="cut_pdf" data-dojo-type="dijit/MenuItem" data-dojo-props='iconClass:"dijitEditorIcon dijitEditorIconCut", |
| 55 | onClick:function(){ console.log("not actually cutting anything, just a test!"); }'>Cut</span> |
| 56 | <span id="copy_pdf" data-dojo-type="dijit/MenuItem" data-dojo-props='iconClass:"dijitEditorIcon dijitEditorIconCopy", |
| 57 | onClick:function(){ console.log("not actually copying anything, just a test!"); }'>Copy</span> |
| 58 | <span id="paste_pdf" data-dojo-type="dijit/MenuItem" data-dojo-props='iconClass:"dijitEditorIcon dijitEditorIconPaste", |
| 59 | onClick:function(){ console.log("not actually pasting anything, just a test!"); }'>Paste</span> |
| 60 | </span> |
| 61 | </button> |
| 62 | </td> |
| 63 | </tr> |
| 64 | <tr> |
| 65 | <td> |
| 66 | <div style="width: 200px;"> |
| 67 | This <select> will disappear on IE6 |
| 68 | when the dialog is displayed. |
| 69 | But the dialog's iframe shouldn't make it disappear because they shouldn't overlap. |
| 70 | </div> |
| 71 | <select id="dropDown_pdf"> |
| 72 | <option>cat</option> |
| 73 | <option>dog</option> |
| 74 | <option>mouse</option> |
| 75 | </select> |
| 76 | <br><br> |
| 77 | |
| 78 | <div id="one_pdf">Mouse over this to see the tooltip</div> |
| 79 | <br> |
| 80 | <div id="two_pdf">Mouse over this to see a different tooltip</div> |
| 81 | </td> |
| 82 | <td id="pdf_td"> |
| 83 | <embed id="pdf" src="resources/helloWorld.pdf" width="500" height="375"> |
| 84 | </td> |
| 85 | </tr> |
| 86 | </table> |
| 87 | <table> |
| 88 | <tr> |
| 89 | <td></td> |
| 90 | <td> |
| 91 | <input id="dateText_flash" data-dojo-type="dijit/form/DateTextBox" data-dojo-props='type:"text" '/> |
| 92 | <button id="menuButton_flash" title="edit title" value="Edit" data-dojo-type="dijit/form/DropDownButton" data-dojo-props='iconClass:"noteIcon"'> |
| 93 | <span>Edit<b>!</b></span> |
| 94 | <span id="menu_flash" data-dojo-type="dijit/DropDownMenu" > |
| 95 | <span id="cut_flash" data-dojo-type="dijit/MenuItem" data-dojo-props='iconClass:"dijitEditorIcon dijitEditorIconCut", |
| 96 | onClick:function(){ console.log("not actually cutting anything, just a test!"); }'>Cut</span> |
| 97 | <span id="copy_flash" data-dojo-type="dijit/MenuItem" data-dojo-props='iconClass:"dijitEditorIcon dijitEditorIconCopy", |
| 98 | onClick:function(){ console.log("not actually copying anything, just a test!"); }'>Copy</span> |
| 99 | <span id="paste_flash" data-dojo-type="dijit/MenuItem" data-dojo-props='iconClass:"dijitEditorIcon dijitEditorIconPaste", |
| 100 | onClick:function(){ console.log("not actually pasting anything, just a test!"); }'>Paste</span> |
| 101 | </span> |
| 102 | </button> |
| 103 | </td> |
| 104 | </tr> |
| 105 | <tr> |
| 106 | <td> |
| 107 | <div style="width: 200px;"> |
| 108 | This select will disappear on IE6 |
| 109 | when the dialog is displayed. |
| 110 | But the dialog's iframe shouldn't make it disappear because they shouldn't overlap. |
| 111 | </div> |
| 112 | <select id="dropDown_flash"> |
| 113 | <option>cat</option> |
| 114 | <option>dog</option> |
| 115 | <option>mouse</option> |
| 116 | </select> |
| 117 | <br><br> |
| 118 | |
| 119 | <div id="one_flash">Mouse over this to see the tooltip</div> |
| 120 | <br> |
| 121 | <div id="two_flash">Mouse over this to see a different tooltip</div> |
| 122 | </td> |
| 123 | <td> |
| 124 | <embed id="flash" src="../../dojox/av/resources/video.swf" width="400" height="300" /> |
| 125 | </td> |
| 126 | </tr> |
| 127 | </table> |
| 128 | <div id="dialog" data-dojo-id="dialog" data-dojo-type="dijit/Dialog"> |
| 129 | Hello! |
| 130 | </div> |
| 131 | </body> |
| 132 | </html> |