diff options
author | 2008-11-13 09:49:11 +0000 | |
---|---|---|
committer | 2008-11-13 09:49:11 +0000 | |
commit | e44a7e37b6c7b5961adaffc62b9042b8d442938e (patch) | |
tree | 95b67c356e93163467db2451f2b8cce84ed5d582 /includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html | |
parent | a62b9742ee5e28bcec6872d88f50f25b820914f6 (diff) | |
download | scuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.gz scuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.zip |
New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html')
-rw-r--r-- | includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html b/includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html new file mode 100644 index 0000000..0ef5daa --- /dev/null +++ b/includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html @@ -0,0 +1,64 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html> + <head> + <title>Multiversion Dojo: 0.4.3 and 1.0 (scoped djConfig)</title> + + <link rel="stylesheet" type="text/css" href="../../../../resources/dojo.css" /> + <link rel="stylesheet" type="text/css" href="../../../../../dijit/css/dijitTests.css" /> + <link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css" /> + + <script type="text/javascript"> + //djConfig for 0.4.3 setup. + djConfig = { + isDebug: true + }; + </script> + <script type="text/javascript" src="http://o.aolcdn.com/dojo/0.4.3/dojo.js"></script> + + <script type="text/javascript" src="../../../../dojo.js"></script> + <script type="text/javascript"> + dojo.require("dojo.widget.DropdownDatePicker"); + + //Notice that dijit._Calendar is required, not jidit._Calendar. + //Same for the dojo resources (not jodo resources). + jodo.require("dijit._Calendar"); + jodo.require("dojo.date.locale"); + jodo.require("dojo.parser"); // scan page for widgets + + dojo.addOnLoad(function(){ + dojo.byId("output043").innerHTML = djConfig.baseUrl; + }); + jodo.addOnLoad(function(){ + dojo.byId("output10").innerHTML = jodo.baseUrl; + }); + + function myHandler(id,newValue){ + console.debug("onChange for id = " + id + ", value: " + newValue); + } + </script> + </head> + <body> + <h1>Multiversion Dojo: 0.4.3 and 1.0 (scoped djConfig)</h1> + + <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> + + <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> + + <p>This page loads Dojo 0.4.3 and Dojo 1.0 (under the jodo scope)</p> + + <p>djConfig.baseUrl should <b>not</b> exist: <span id="output043"></span></p> + + <p>jodo.baseUrl should be "../../../../": <span id="output10"></span></p> + + <p> + <input dojoType="dropdowndatepicker" value="2006-10-31" containerToggle="wipe" containerToggleDuration="300" > + </p> + + <p class="tundra"> + <input id="calendar1" jodoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])"> + </p> + + </body> +</html> + |