Hi,
I’m trying to use the calendar control and I want to bind it multiple inputs. Two of the input field are on dhtml tab pages (Divs not iframes) and one is elsewhere on the same page. I want to share the between these controls, meaning I need to reset it properly before it is launched.
This was just background for my ACTUAL question. I see some help topics on accomplishing the aforementioned task, which I will read.
second attempt to post this, with a real address, spam be damned I guess.
My ACTUAL question is about firing close() for the calendar whenever another control receives focus (or put another way, when the calendar is blurred).
Currently the calendar just hangs around if I click into another control. I started to make a dhtmlxevent call for the blur event before realizing I don’t have an element to which I can bind the event.
So:
How do I get the calendar control to close when I’ve clicked on another control? Keep in mind that the other control I click on might be another calendar-bound input.
Thanks in advance!
On a side note: I notice the calendar take a moment to load the first time the input is clicked. After that it is pretty snappy. Is there any way to preload the calendar beyond drawing it somewhere hidden to avoid the user experiencing that upfront cost?
Please, take a look at the answer dhtmlx.com/docs/products/kb/ … mal&q=8595
>> I notice the calendar take a moment to load the first time the input is clicked. After that it is pretty snappy. Is there any way to preload the calendar beyond drawing it somewhere hidden to avoid the user experiencing that upfront cost?
You can call hide() method right after draw();
…
cal.draw();
cal.hide();