Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F947858
test_Calendar.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
test_Calendar.html
View Options
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<
html
>
<
head
>
<
title
>
Calendar Widget Test
</
title
>
<
style
type
=
"text/css"
>
@
import
"../../dojo/resources/dojo.css"
;
@
import
"css/dijitTests.css"
;
</
style
>
<
script
type
=
"text/javascript"
src
=
"../../dojo/dojo.js"
djConfig
=
"parseOnLoad: true, isDebug: true, extraLocale: ['en-us', 'ar-sy', 'es-es', 'zh-cn']"
></
script
>
<
script
type
=
"text/javascript"
src
=
"_testCommon.js"
></
script
>
<
script
type
=
"text/javascript"
>
dojo
.
require
(
"dijit._Calendar"
);
dojo
.
require
(
"dojo.date.locale"
);
dojo
.
require
(
"dojo.parser"
);
// scan page for widgets
function
myHandler
(
id
,
newValue
){
console
.
debug
(
"onChange for id = "
+
id
+
", value: "
+
newValue
);
}
</
script
>
</
head
>
<
body
>
<
h1
class
=
"testTitle"
>
Dijit Calendar Test
</
h1
>
before
<
input
id
=
"calendar1"
dojoType
=
"dijit._Calendar"
onChange
=
"myHandler(this.id,arguments[0])"
lang
=
"en-us"
>
<
input
id
=
"calendar2"
dojoType
=
"dijit._Calendar"
onChange
=
"myHandler(this.id,arguments[0])"
lang
=
"es-es"
>
<
input
id
=
"calendar3"
dojoType
=
"dijit._Calendar"
onChange
=
"myHandler(this.id,arguments[0])"
lang
=
"zh-cn"
>
<
input
id
=
"calendar4"
dojoType
=
"dijit._Calendar"
onChange
=
"myHandler(this.id,arguments[0])"
lang
=
"ar-sy"
>
after
<
p
>
<
a
href
=
"#"
onClick
=
"for(var i=1; i!=5; i++){
var c = dijit.byId('calendar'+i);
c.isDisabledDate=dojo.date.locale.isWeekend;
c._populateGrid();
}
"
>
disable weekends
</
a
>
</
p
>
</
body
>
</
html
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sat, Apr 26, 13:41 (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23399
Default Alt Text
test_Calendar.html (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment