R: [Dojo-interest] how to get value out of datepicker widget

Luigi Tenti ltenti at quadrante.com
Wed Nov 8 02:37:34 MST 2006


Hi Johannes,

 

the DataPicker is inside the DropDownDatePicker so you have to use:

 

alert(dojo.byId('setstartdate').datePicker.value);

 

or something similar.

 

I hope this is usefull.

 

Luigi.



 

  _____  

Da: dojo-interest-bounces at dojotoolkit.org
[mailto:dojo-interest-bounces at dojotoolkit.org] Per conto di Johannes
Huettemeister
Inviato: mercoledì 8 novembre 2006 10.25
A: dojo-interest at dojotoolkit.org
Oggetto: [Dojo-interest] how to get value out of datepicker widget

 

Hi,

this is probably a very easy one: I use the datepiciker widget:
<input name="setstartdate" dojoType="dropdowndatepicker" id="setstartdate"
saveFormat="posix" value="today"> 

Now from a custom widget I want to get the value for the datepicker widget
(in unixtime), without using a submit button:

alert(dojo.byId('setstartdate').value);
alert(dojo.widget.byId('setstartdate').value); 

but always I only get "undefined" !?

How is the proper way to do this?

cheers Johannes.

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date: 07/11/2006

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20061108/d22e7b45/attachment.html


More information about the Dojo-interest mailing list