Re: reset the value of a datetimepicker using java script

2007-05-02 Thread kris16
Hi, it works fine. Thanks :-) /Regards Krister Musachy Barroso wrote: > > dojo.widget.byId("dp0").inputNode.value = ""; > > Use at your own risk, you are using Dojo internals there :) > > musachy > > On 5/2/07, kris16 <[EMAIL PROTECTED]> wrote: >> >> >> Hi Musachy, >> yes that works thanks.

Re: reset the value of a datetimepicker using java script

2007-05-02 Thread Musachy Barroso
dojo.widget.byId("dp0").inputNode.value = ""; Use at your own risk, you are using Dojo internals there :) musachy On 5/2/07, kris16 <[EMAIL PROTECTED]> wrote: Hi Musachy, yes that works thanks. But i do not want to set the value to new Date(). I want to set i to "", or erase the text field f

Re: reset the value of a datetimepicker using java script

2007-05-02 Thread kris16
Hi Musachy, yes that works thanks. But i do not want to set the value to new Date(). I want to set i to "", or erase the text field from the date so to say. Is that possible ? /Krister Musachy Barroso wrote: > > You need to call the "setDate(date)" method on the *widget* for the > datepicker

Re: reset the value of a datetimepicker using java script

2007-05-02 Thread Musachy Barroso
You need to call the "setDate(date)" method on the *widget* for the datepicker, assuming you have a datepicker with the id "dp0": dojo.widget.byId("dp0") .setDate(new Date()); musachy On 5/2/07, kris16 <[EMAIL PROTECTED]> wrote: Hi, I am trying to reset the value of a datetimepicker in a jsp