1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
5 <title>Multiversion Dojo: 0.4.3 and 1.0 (scoped djConfig)</title>
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" />
11 <script type="text/javascript">
12 //djConfig for 0.4.3 setup.
17 <script type="text/javascript" src="http://o.aolcdn.com/dojo/0.4.3/dojo.js"></script>
19 <script type="text/javascript" src="../../../../dojo.js"></script>
20 <script type="text/javascript">
21 dojo.require("dojo.widget.DropdownDatePicker");
23 //Notice that dijit._Calendar is required, not jidit._Calendar.
24 //Same for the dojo resources (not jodo resources).
25 jodo.require("dijit._Calendar");
26 jodo.require("dojo.date.locale");
27 jodo.require("dojo.parser"); // scan page for widgets
29 dojo.addOnLoad(function(){
30 dojo.byId("output043").innerHTML = djConfig.baseUrl;
32 jodo.addOnLoad(function(){
33 dojo.byId("output10").innerHTML = jodo.baseUrl;
36 function myHandler(id,newValue){
37 console.debug("onChange for id = " + id + ", value: " + newValue);
42 <h1>Multiversion Dojo: 0.4.3 and 1.0 (scoped djConfig)</h1>
44 <p><b>NOTE: This test only works with a built version of Dojo, and it must be built with the scopeDjConfig parameter (the backslashes below are required):</b></p>
46 <p style="color: blue; background-color: yellow">build.sh profile=standard action=release scopeDjConfig=\{parseOnLoad:true,baseUrl:\"../../../../\",foo:\"bar\",scopeMap:[[\"dojo\",\"jodo\"],[\"dijit\",\"jidit\"],[\"dojox\",\"jodox\"]]\}</p>
48 <p>This page loads Dojo 0.4.3 and Dojo 1.0 (under the jodo scope)</p>
50 <p>djConfig.baseUrl should <b>not</b> exist: <span id="output043"></span></p>
52 <p>jodo.baseUrl should be "../../../../": <span id="output10"></span></p>
55 <input dojoType="dropdowndatepicker" value="2006-10-31" containerToggle="wipe" containerToggleDuration="300" >
59 <input id="calendar1" jodoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])">