Hi to all,
I am trying to extend the WebCalendar with client side events like onmouseout but I am unable to get it to work.
A code snippet you can find here below. I am enumerating through the days, when a condition is true I am trying to add the onmouseover event to it like this.
document.getElementById(oCalendar.Days[i].element.id).onmouseover = 'BLOCKED SCRIPTalert("hi!");';
The oCalendar.Days[i].element.id gives the id of the table cell of that particular day.
Can someone tell me how it can work?
To process events you may use WebCalendar shortcuts, though your approach also might work. The Days[index].element is already reference to element, so there is no need to use getElementById. Below is example:
This works great, thanks a lot.