You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michel Erard <mi...@corix.ch> on 2008/02/05 12:05:49 UTC

Listeners in Datefield

Hello, 

I've another ajax problem. I've a field with a date picker. Now, to the field is added a listener that deletes the content of another field, if a date is choosed. the generated html is:

<span id="datum"><input variant="date" pattern="dd.MM.yyyy" dojoType="forms:dropdownDateTimePicker" type="text" title="" value="" name="datum" id="datum:input" class="forms field active" onchange="cocoon.forms.submitForm(this)"></span>

So the problem is, that the listener is only called, if I choose a Date, click into the Field and type 'Enter'. Is it possible to call the listener, when a date is choosed with the Datepicker?

Thanks, 

Mike