DMXzone Calendar Support Product Page

Help adding custom behavior

Asked 21 Mar 2010 16:39:13
has this question
21 Mar 2010 16:39:13 larry Lee posted:
Hi I have searched DMX site and have not found any help or documentation on this issue.
I have added a custom onChange behavior to the the Calendar to run a javascript function (which works fine if executed on its own)to calculate the date difference between the date selected with the calendar and a date from a database record. My problem is that I cannot seem to get it to perform the "onChange" behavior. I added the custom behavior using the Properties inspector and the following was added by the Properties inspector:

onChangeMonthYear : function anonymous(date) {
calcDuration(document.form1.inputDate.value, document.form1.dmxCalendar_1.value);.

My function is the calcDuration call and DMX properties inspector added the rest.
In short it does not call my funtion. I have reviewed the documentation and the support forums and found no help there. Any help will be welcomed.


Replied 29 Mar 2010 16:34:48
29 Mar 2010 16:34:48 Miroslav Zografski replied:
Hello Larry,

You better set the function on "onDateSelected" behavior.


Reply to this topic