http://www.koders.com/javascript/fidFF0542A22748F79D50156F4B75564D76676002D4.aspx
I would suggest using struts.widgets.HTMLDynArchCalendar
whcih inherits from dojo.widget.DomWidget
which has the enable()
and disable() methods
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "Musachy Barroso" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, April 24, 2007 11:01 AM
Subject: Re: S2: Disable datetimepicker
Assign an id to your datepicker, lets say "dp1" and do this:
dojo.widget.byId("dp1").disable();
to enable it:
dojo.widget.byId("dp1").enable();
musachy
On 4/24/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:
I would like to enable/disable the datetimepicker when
the user selects certain radio buttons. Here is my
tag:
<s:datetimepicker name="untildate"
displayWeeks="4"
displayFormat= "MM-dd-yyyy"/>
I can disable (and clear) the textbox next to the
calendar icon like this:
var ud = getField('mainForm', 'untildate');
ud.value = "";
ud.disabled = true;
But this does not disable the calendar icon:
ud = getField('mainForm', 'dojo.untildate');
ud.disabled = true;
Any ideas on this? I do not see any other applicable
elements in my form.
Thanks,
Scott
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]