1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
   |  
<style type="text/css">
	@import "./ajax/dojo_1.1.1/dojo/resources/dojo.css";
	@import "./ajax/dojo_1.1.1/dijit/tests/css/dijitTests.css";
</style>
<script type="text/javascript" src="./ajax/dojo_1.1.1/dojo/dojo.js" djConfig="parseOnLoad: true, isDebug: true, extraLocale: ['fr-fr']"></script>
<script type="text/javascript" src="./ajax/dojo_1.1.1/dijit/tests/_testCommon.js"></script>
 
<script type="text/javascript">
	dojo.require("dijit._Calendar");
	dojo.require("dojo.date.locale");
	dojo.require("dojo.parser"); // scan page for widgets
 
	/*dojo.addOnLoad(function(){
		//Need to declare BigCalendar here in an addOnLoad block so that it works
		//with xdomain loading, where the dojo.require for dijit._Calendar 
		//may load asynchronously. This also means we cannot have HTML
		//markup in the body tag for BigCalendar, but instead inject it in this
		//onload handler after BigCalendar is defined.
		dojo.declare("BigCalendar", dijit._Calendar, {
			templatePath: "./ajax/dodjo_1.1.1/dijit/tests/_altCalendar.html"
		});
 
		var bigCalendar = dojo.byId("calendar5");
		bigCalendar.setAttribute("dojoType", "BigCalendar");
		dojo.parser.parse(bigCalendar.parentNode);
	});*/
 
	function myHandler(id,newValue){
		console.debug("onChange for id = " + id + ", value: " + newValue);
	}
</script>
 
<input id="calendar1" dojoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])" lang="fr-fr"> | 
Partager