Categories | Question details Back To List | ||
[CALENDAR] Hide calendar if clicked outside of it? (onBlur??) Can You tell me how to force calendar to hide if I click outside of it? It won't be much of a problem, but if I rerender part of my page by AJAX and have calendar absolutely positioned as a child of <body>, calendar stays in place :) Usally over some important content. This is the reason why I need this kind of solution... Answer posted by Support on Apr 24, 2008 03:05 There is no onBlur event, but next line of code must cause necessary effect dhtmlxEvent(document.body, "click", function(){ mycalendar.hide() }); |