Ablot dhtmlxCalendar

hi…



Trying to use the dhtmlxCalendar …





The problem is trying to close the event occurs "body.onclick "



Have not been fully resolved.



dhtmlxCalendar hide



What should be the case?

By default dhtmlxcalendar attaching event handler and close itself when any date selected in calendar.
You can close calendar on any click in document by using

dhtmlxEvent(document.body,“click”,function(){
    mycalendar.close();
});

It gives following JS error :

[Exception…
“Could not convert JavaScript argument” nsresult: “0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)” location: “JS frame ::
http://localhost:9080/db4/js/dhtmlx/dhtmlxCalendar/codebase/dhtmlxcalendar.js
:: anonymous :: line 93” data: no]

Sorry for inconvenience, was a my typo, the correct code would be
dhtmlxEvent(document.body,“click”,function(){
    mycalendar.hide();
});