2150 |
mathias |
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>Calendar Widget Test</title>
|
|
|
6 |
<style type="text/css">
|
|
|
7 |
@import "../../dojo/resources/dojo.css";
|
|
|
8 |
@import "css/dijitTests.css";
|
|
|
9 |
</style>
|
|
|
10 |
|
|
|
11 |
<script type="text/javascript" src="../../dojo/dojo.js"
|
|
|
12 |
djConfig="parseOnLoad: true, isDebug: true, extraLocale: ['en-us', 'ar-sy', 'es-es', 'zh-cn']"></script>
|
|
|
13 |
<script type="text/javascript" src="_testCommon.js"></script>
|
|
|
14 |
|
|
|
15 |
<script type="text/javascript">
|
|
|
16 |
dojo.require("dijit._Calendar");
|
|
|
17 |
dojo.require("dojo.date.locale");
|
|
|
18 |
dojo.require("dojo.parser"); // scan page for widgets
|
|
|
19 |
|
|
|
20 |
function myHandler(id,newValue){
|
|
|
21 |
console.debug("onChange for id = " + id + ", value: " + newValue);
|
|
|
22 |
}
|
|
|
23 |
</script>
|
|
|
24 |
</head>
|
|
|
25 |
<body>
|
|
|
26 |
<h1 class="testTitle">Dijit Calendar Test</h1>
|
|
|
27 |
|
|
|
28 |
before
|
|
|
29 |
<input id="calendar1" dojoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])" lang="en-us">
|
|
|
30 |
<input id="calendar2" dojoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])" lang="es-es">
|
|
|
31 |
<input id="calendar3" dojoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])" lang="zh-cn">
|
|
|
32 |
<input id="calendar4" dojoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])" lang="ar-sy">
|
|
|
33 |
after
|
|
|
34 |
<p>
|
|
|
35 |
<a href="#"
|
|
|
36 |
onClick="for(var i=1; i!=5; i++){
|
|
|
37 |
var c = dijit.byId('calendar'+i);
|
|
|
38 |
c.isDisabledDate=dojo.date.locale.isWeekend;
|
|
|
39 |
c._populateGrid();
|
|
|
40 |
}
|
|
|
41 |
">disable weekends</a>
|
|
|
42 |
</p>
|
|
|
43 |
</body>
|
|
|
44 |
</html>
|