]> git.pond.sub.org Git - eow/blob - static/dojo-release-1.1.1/dojo/tests/_base/_loader/scope/scopeContained.html
add Dojo 1.1.1
[eow] / static / dojo-release-1.1.1 / dojo / tests / _base / _loader / scope / scopeContained.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2         "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4         <head>
5                 <title>Multiversion Dojo: 0.4.3 and 1.0</title>
6
7                 <link rel="stylesheet" type="text/css" href="../../../../resources/dojo.css" />
8                 <link rel="stylesheet" type="text/css" href="../../../../../dijit/css/dijitTests.css" />
9                 <link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css" />
10                 
11                 <script type="text/javascript">
12                         //djConfig for 0.4.3 setup.
13                         djConfig = {
14                                 isDebug: true
15                         };
16                 </script>
17                 <script type="text/javascript" src="http://o.aolcdn.com/dojo/0.4.3/dojo.js"></script>
18                 
19                 <script type="text/javascript">
20                         //Scope map for this page is "burned in" via a build command (see HTML notes below).
21                         //Also, just adding properties instead of redefining djConfig, since that
22                         //will wipe out djConfig values set up by the 0.4.3 dojo.
23                         djConfig.parseOnLoad = true;
24                         djConfig.baseUrl = "../../../../";
25                 </script>
26                 <script type="text/javascript" src="../../../../dojo.js"></script>
27                 <script type="text/javascript">
28                         dojo.require("dojo.widget.DropdownDatePicker");
29
30                         //Notice that dijit._Calendar is required, not jidit._Calendar.
31                         //Same for the dojo resources (not jodo resources).
32                         jodo.require("dijit._Calendar");
33                         jodo.require("dojo.date.locale");
34                         jodo.require("dojo.parser"); // scan page for widgets
35
36                         dojo.addOnLoad(function(){
37                                 dojo.byId("output043").innerHTML = dojo.version.toString();
38                         });
39                         jodo.addOnLoad(function(){
40                                 dojo.byId("output10").innerHTML = jodo.version.toString();
41                         });
42
43                         function myHandler(id,newValue){
44                                 console.debug("onChange for id = " + id + ", value: " + newValue);
45                         }
46                 </script>
47         </head>
48         <body>
49                 <h1>Multiversion Dojo: 0.4.3 and 1.0</h1>
50         
51                 <p><b>NOTE: This test only works with a built version of Dojo, and it must be built with the scopeMap parameter (the backslashes below are required):</b></p>
52
53                 <p style="color: blue; background-color: yellow">build.sh profile=standard action=release scopeMap=[[\"dojo\",\"jodo\"],[\"dijit\",\"jidit\"],[\"dojox\",\"jodox\"]]</p>
54                 
55                 <p>This page loads Dojo 0.4.3 and Dojo 1.0 (under the jodo scope)</p>
56                 
57                 <p>Dojo 0.4.3 version: <span id="output043"></span></p>
58                 
59                 <p>Jodo version: <span id="output10"></span></p>
60                 
61                 <p>
62                         <input dojoType="dropdowndatepicker" value="2006-10-31" containerToggle="wipe" containerToggleDuration="300" >
63                 </p>
64                 
65                 <p class="tundra">
66                         <input id="calendar1" jodoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])">
67                 </p>
68                 
69         </body>
70 </html>
71