OnBeforeCommitTop
OnBeforeCommit
Occur before KoolCalendar commits changes to server.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnBeforeCommit"] = "Handle_OnBeforeCommit";
...
?>
...
<script type="text/javacript">
function Handle_OnBeforeCommit(sender,args)
{
alert("KoolCalendar is about to commit.");
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeDeselectTop
OnBeforeDeselect
Occur before KoolCalendar date is deselected.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnBeforeDeselect"] = "Handle_OnBeforeDeselect";
...
?>
...
<script type="text/javacript">
function Handle_OnBeforeDeselect(sender,args)
{
alert("Deselecting date:" + args["Date"]);
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeNavigateTop
OnBeforeNavigate
Occur before KoolCalendar is navigated.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnBeforeNavigate"] = "Handle_OnBeforeNavigate";
...
?>
...
<script type="text/javacript">
function Handle_OnBeforeNavigate(sender,args)
{
alert("Navigating date:" + args["Date"]);
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnBeforeSelectTop
OnBeforeSelect
Occur before KoolCalendar date is selected.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnBeforeSelect"] = "Handle_OnBeforeSelect";
...
?>
...
<script type="text/javacript">
function Handle_OnBeforeSelect(sender,args)
{
alert("Selecting date:" + args["Date"]);
return true; // Approve action
}
</script>
Supported from version: 1.0.0.0
OnCommitTop
OnCommit
Occur when KoolCalendar is first initiated.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnCommit"] = "Handle_OnCommit";
...
?>
...
<script type="text/javacript">
function Handle_OnCommit(sender,args)
{
alert("KoolCalendar commited");
}
</script>
Supported from version: 1.0.0.0
OnDayMouseOutTop
OnDayMouseOut
Occur when mouse is out of a date.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnDayMouseOut"] = "Handle_OnDayMouseOut";
...
?>
...
<script type="text/javacript">
function Handle_OnDayMouseOut(sender,args)
{
alert("MouseOut");
}
</script>
Supported from version: 1.0.0.0
OnDayMouseOverTop
OnDayMouseOver
Occur when mouse is over a date.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnDayMouseOver"] = "Handle_OnDayMouseOver";
...
?>
...
<script type="text/javacript">
function Handle_OnDayMouseOver(sender,args)
{
alert("MouseOver");
}
</script>
Supported from version: 1.0.0.0
OnDeselectTop
OnDeselect
Occur when user deselects a date.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnDeselect"] = "Handle_OnDeselect";
...
?>
...
<script type="text/javacript">
function Handle_OnDeselect(sender,args)
{
alert("Deselected date:"+ args["Date"]);
}
</script>
Supported from version: 1.0.0.0
OnInitTop
OnInit
Occur when KoolCalendar is first initiated.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnInit"] = "Handle_OnInit";
...
?>
...
<script type="text/javacript">
function Handle_OnInit(sender,args)
{
alert("KoolCalendar is initiated.");
}
</script>
Supported from version: 1.0.0.0
OnLoadTop
OnLoad
Occur when KoolCalendar is loaded.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnLoad"] = "Handle_OnInit";
...
?>
...
<script type="text/javacript">
function Handle_OnLoad(sender,args)
{
alert("KoolCalendar is loaded.");
}
</script>
Supported from version: 1.0.0.0
OnNavigateTop
OnNavigate
Occur when KoolCalendar is navigated.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnNavigate"] = "Handle_OnNavigate";
...
?>
...
<script type="text/javacript">
function Handle_OnNavigate(sender,args)
{
alert("Nevigated date:"+ args["Date"]);
}
</script>
Supported from version: 1.0.0.0
OnSelectTop
OnSelect
Occur when user selects a date.
Show/Hide Code
<?php
...
$cal->ClientEvents["OnSelect"] = "Handle_OnSelect";
...
?>
...
<script type="text/javacript">
function Handle_OnSelect(sender,args)
{
alert("Selected date:"+ args["Date"]);
}
</script>
Supported from version: 1.0.0.0