users@woodstock.java.net

Re: Calendar component and client side events

From: Rasha <rasha.abdallah_at_murex.com>
Date: Fri, 9 Nov 2007 00:42:25 -0800 (PST)

Also, it seems that the fireEvent cannot be executed on woodstock
components...
i.e. if I do :
getElementById('myComponentID').fireEvent('onChange');

I get a javascript error.
Is there a way I can get around this problem ?
Thanks
-Rasha


Rasha wrote:
>
> Hello,
> I am trying to fire client side javascript when the value of the calendar
> component changes.
> However the provided onChange method will only fire the event if the user
> "edits" the calendar field manually. And The onchange event does not fire
> when the textfield value is changed programatically.
>
> Now an alternative would be to fire the onchange event manually when the
> user clicks on the calendar and picks a date. But the Calendar itself does
> not expose events, it's only its textfield that does.
>
> My question is, is there a way we can listen to events on the Calendar
> itself (and not on the textfield associated with it)? i.e. is there a way
> to set an "onClick" for example for the Calendar itself and not for its
> textfield.
>
> Thanks,
> Rasha
>

-- 
View this message in context: http://www.nabble.com/Calendar-component-and-client-side-events-tf4776391.html#a13663266
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.