source: Dev/branches/rest-dojo-ui/client/dijit/tests/test_bgIframe.html @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 3.6 KB
Line 
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        <style type="text/css">
9                @import "../themes/claro/document.css";
10                @import "css/dijitTests.css";
11        </style>
12
13        <!-- required: a default dijit theme: -->
14        <link id="themeStyles" rel="stylesheet" href="../../dijit/themes/claro/claro.css"/>
15
16        <!-- required: dojo.js -->
17        <script type="text/javascript" src="../../dojo/dojo.js"
18                data-dojo-config="parseOnLoad: true, isDebug: true"></script>
19
20        <!-- not needed, for testing alternate themes -->
21        <script type="text/javascript" src="_testCommon.js"></script>
22
23        <script type="text/javascript">
24                dojo.require("dijit.dijit"); // optimize: load dijit layer
25                dojo.require("dijit.Dialog");
26                dojo.require("dijit.form.DateTextBox");
27                dojo.require("dijit.form.Button");
28                dojo.require("dijit.Tooltip");
29                dojo.require("dojo.parser");    // scan page for widgets and instantiate them
30        </script>
31
32</head>
33<body class="claro">
34        <span data-dojo-type="dijit.Tooltip" data-dojo-props='connectId:["one_applet"]'>
35                This is one tooltip.
36        </span>
37        <span data-dojo-type="dijit.Tooltip" data-dojo-props='connectId:["two_applet"]'>
38                This is another tooltip.  A little longer...
39        </span>
40        <span data-dojo-type="dijit.Tooltip" data-dojo-props='connectId:["one_xapp"]'>
41                This is one tooltip.
42        </span>
43        <span data-dojo-type="dijit.Tooltip" data-dojo-props='connectId:["two_xapp"]'>
44                This is another tooltip.  A little longer...
45        </span>
46        <button id="showDialog" data-dojo-type="dijit.form.Button">
47                Show Dialog
48                <script type="dojo/connect" data-dojo-event="onClick">
49                        dialog.show();
50                </script>
51        </button>
52        <table>
53                        <tr>
54                                <td></td>
55                                <td>
56                                        <input id="dateText_applet" data-dojo-type="dijit.form.DateTextBox" data-dojo-props='type:"text" '/>
57                                </td>
58                        </tr>
59                        <tr>
60                                <td>
61                                        <div style="width: 200px;">
62                                                This &lt;select&gt; will disappear on IE6
63                                                when the dialog is displayed.
64                                                But the dialog's iframe shouldn't make it disappear because they shouldn't overlap.
65                                        </div>
66                                        <select id="dropDown_applet">
67                                                <option>cat</option>
68                                                <option>dog</option>
69                                                <option>mouse</option>
70                                        </select>
71                                        <br><br>
72
73                                        <div id="one_applet">Mouse over this to see the tooltip</div>
74                                        <br>
75                                        <div id="two_applet">Mouse over this to see a different tooltip</div>
76                                </td>
77                                <td id="applet_td">
78                                        <!-- TODO: remove the applet tag which is deprecated -->
79                                        <applet id="applet" width="400" height="300" code="javax.swing.JApplet">
80                                                <param name="mayscript" value="false">
81                                                <param name="scriptable" value="false">
82                                                <param name="initial_focus" value="false">
83                                        </applet>
84                                </td>
85                        </tr>
86        </table>
87        <table>
88                        <tr>
89                                <td></td>
90                                <td>
91                                        <input id="dateText_xapp" data-dojo-type="dijit.form.DateTextBox" data-dojo-props='type:"text" '/>
92                                </td>
93                        </tr>
94                        <tr>
95                                <td>
96                                        <div style="width: 200px;">
97                                                This select will disappear on IE6
98                                                when the dialog is displayed.
99                                                But the dialog's iframe shouldn't make it disappear because they shouldn't overlap.
100                                        </div>
101                                        <select id="dropDown_xapp">
102                                                <option>cat</option>
103                                                <option>dog</option>
104                                                <option>mouse</option>
105                                        </select>
106                                        <br><br>
107
108                                        <div id="one_xapp">Mouse over this to see the tooltip</div>
109                                        <br>
110                                        <div id="two_xapp">Mouse over this to see a different tooltip</div>
111                                </td>
112                                <td>
113                                        <embed id="xapp" src="../../dojox/av/resources/video.swf" width="400" height="300" />
114                                </td>
115                        </tr>
116        </table>
117        <div id="dialog" data-dojo-id="dialog" data-dojo-type="dijit.Dialog">
118                Hello!
119        </div>
120</body>
121</html>
Note: See TracBrowser for help on using the repository browser.