Re: [s2] How to get the value of dojo datetimepicker object

2007-06-07 Thread Vincent Lin
Thanks Musachy, it works. The javascript error I had is caused by wrong element id. But it's wierd that when I used the wrong id, the alert(obj) give me a dojo object name. When I call obj.gatValue(), I got a javascript error. On 6/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: The setter me

Re: [s2] How to get the value of dojo datetimepicker object

2007-06-07 Thread Musachy Barroso
The setter methods are specific to 2.1, but the getter ones are available on 2.0.x: http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-DateandTimepicker musachy On 6/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: I posted this not long ago on this li

Re: [s2] How to get the value of dojo datetimepicker object

2007-06-07 Thread Musachy Barroso
I posted this not long ago on this list. Basically you have to use "getDate()" to get a JavaScript date object and getValue() to get the text entered in the datepicker. musachy On 6/7/07, Vincent Lin <[EMAIL PROTECTED]> wrote: I am trying to get the value inputed by the user from datetimepicke

[s2] How to get the value of dojo datetimepicker object

2007-06-07 Thread Vincent Lin
I am trying to get the value inputed by the user from datetimepicker object. I have the following javascript in my JSP: var obj = dojo.widget.byId("createTimeTm"); alert(obj); alert(obj.getValue()); But "alert(obj.getValue())" encounter a javsacript error. Can anyone tell m