Hello all,
I am evaluating dhtmlxCalendar 3.0, fine work, but have some problem to get the this.activeCon.id from my calendar attach to several input.
Here is my code :
function doOnLoad() {
myCalendar = new dhtmlXCalendarObject([“d_entree”, “d_sortie”, “d_alerte”]);
myCalendar.loadUserLanguage(‘fr’);
myCalendar.attachEvent(“onClick”,function(date){
var myID = this.activeCon.id;
onChangeDate(myID)})
}
The calendar is well shown with the correct language and active. My input field is filled with the correct date but I got this javascript error message :
TypeError: ‘undefined’ is not an object (evaluating ‘this.activeCon.id’)
and my function “onChangeDate” is never callled.
Thanks for your help.
Best regards
Laurent Wallard