PermaLink Question on dojo date picker05/27/2009 10:04 AM
dojo
I've been having a fun time trying to get the dojo date picker to work.  I'm using dojo 1.1.1 that ships with Domino 8.5.

It seems that the dijit.form.DateTextBox widget won't load a date value that already exists in the document if its not in the format dojo is expecting, which is "yyyy-mm-dd".  I tried reformatting the date in the "HTML Attributes" event for the field, but the date is still cleared out by the widget:

date := SurveyDate;
year := @Text ( @Year ( date ) );

month := @Text ( @Month ( date ) );
@If ( @Length ( month ) < 2; month := "0" + month; "" );

day := @Text ( @Day ( date ) );
@If ( @Length ( day ) < 2; day := "0" + day; "" );

"dojoType=\"dijit.form.DateTextBox\" value=\"" + year + "-" + month + "-" + day + "\""

The Dojomino dojomino.dijit.form.DateTextBox widget solves this problem, but the load time for Dojomino far from optimal.

Is there a way I can solve this problem using dojo 1.1.1?  Or this problem been resolved with a later version of dojo?  Or is there a way I can just load the one Dojomino widget I need?
Comments :v
No comments.
Credits
NuTechs Powered by Domino
Search
Calendar
March 2010
Su
Mo
Tu
We
Th
Fr
Sa
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
Monthly Archive
Get Real, Detroit!
Real Detroit Weekly
SWARM
Service
With
A
Rapid
Motion


-- old Rally's Hamburgers credo
Lotus Domino ND6 RSS News Feed RSS Comments Feed Podcast Feed Geo URL netcraft RSS Validator Lotus Geek Chris. A. Brandlehner Open Notes Picture Database OpenNTF CoComment Integrated BlogSphere
By Category
The BlogRoll
About
Contact Me
Contact me, Michael Sobczak, using this e-mail address:

my first initial my last name at Yahoo dot com
Recent Entries
No Recent Blogs
Powered by
Blogsphere