1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
5 <title>Using scope names inside dojo.require/dojoType</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.
16 baseUrl: "../../../../",
25 <script type="text/javascript" src="../../../../dojo.js"></script>
26 <script type="text/javascript">
28 //Notice that dijit._Calendar is required, not jidit._Calendar.
29 //Same for the dojo resources (not jodo resources).
30 jodo.require("dijit._Calendar");
31 jodo.require("dojo.date.locale");
32 jodo.require("dojo.parser"); // scan page for widgets
34 jodo.addOnLoad(function(){
35 jodo.byId("output10").innerHTML = jodo.version.toString();
38 function myHandler(id,newValue){
39 console.debug("onChange for id = " + id + ", value: " + newValue);
42 jodo.byId("typeOut").innerHTML = "typeof dojo: " + (typeof dojo) + "<br>typeof dijit: " + (typeof dijit) + "<br>typeof dojox: " + (typeof dojox);
44 setTimeout(foobar, 2000);
48 <h1>Using scope names inside dojo.require/dojoType</h1>
50 <p><b>NOTE: This test only works with a built version of Dojo.</b></p>
52 <p>Jodo version: <span id="output10"></span></p>
54 <p><b>typeof dojo, dijit and dojox should be undefined</b>: <br><span id="typeOut"></span></p>
57 <input id="calendar1" jodoType="jidit._Calendar" onChange="myHandler(this.id,arguments[0])">