Jimsurf wrote:which should result in something like:
function OnRevisedDateChanged(sender, args)
{}
The argument list is wrong. See here for details about this handler:
http://doc.essentialobjects.com/library/1/jsdoc.public.handlers.clientside_generic_handler.aspxJimsurf wrote:1) How do you remove a date from the control or set it to null on the browser?
If you do it manually, then yes, you must delete each portion individually (with backspace or del). If you do it with code, you can call this function with "null" argument:
http://doc.essentialobjects.com/library/1/jsdoc.public.calendar.setselecteddate.aspxJimsurf wrote:If I attempt to erase the date from the control, I have to select each date portion individually, and use the backspace button. Doing so seems to cause the above event handler to fire once or twice, but it never fires when the date becomes blank.
This is normal. Any "incomplete" date is considered invalid thus is the same as "empty". For example, if you just delete the year part of a date, then getSelectedDate will return null meaning the DatePicker currently does not have a valid value.
Jimsurf wrote:I want to know how to recognize any date change including removal of the date. I don't see how your control supports that?
Handle ClientSideOnChange is the correct way to do it. Inside your function you can call getSelectedDate to check whether the DatePicker has a valid value:
http://doc.essentialobjects.com/library/1/jsdoc.public.calendar.getselecteddate.aspxAs soon as you see it returns null, it means the DatePicker no longer has a valid date value. Note this does not mean all portions have been cleared.
Hope this helps.
Thanks!