Categories | Question details Back To List | ||
DHTMLX Calendar : Closing Calendar if date not selected. Hi there, I am using DHTMLX Calendar, I want the functionality that if I don't select the date when click on some input then the calendar object should automatically be closed. I used following on PARENT JSP page, but not working. Please help. dhtmlxEvent(document.body,"click",function(){ <myCalendarObject>.close(); }); Answer posted by Support on Jul 22, 2008 03:38 Please try to use dhtmlxEvent(document.body,"click",function(){ <myCalendarObject>.hide(); }); Answer posted by Ramakrishna on Jul 22, 2008 08:29 Its not working as I am loading Calendar on CLICK of an icon. How to solve this ? Answer posted by Support on Jul 22, 2008 09:25 <img onclick=" calendar.show(); (arguments[0]||event).cancelBubble=true; " ... by adding code marked in bold you will prevent event bubbling so, click event will not triger calendar closing. Answer posted by Ramakrishna on Jul 24, 2008 03:26 Will this work with JSP which is shown using modalbox ???? As I am able
to show the calendar on it, but date is not getting selected. Answer posted by Support on Jul 24, 2008 08:37 The component is fully client side so it will work the same with any server side code. |