justinlee - Friday, October 7, 2011 11:36 PM:
Hi every one...
i'm use Calender.dll and call some event when date change in Calendar but the event OnDateSelected() doesn't work.
I had read API Reference but i can't work it....
P/s: Sorry my English
aknourenko - Thursday, October 13, 2011 12:43 PM:
Would you provide a complete JS code (I assume that you event handler is in JS; if not then please explain how you use the control) in which you set your event handler for the OnDateSelected event of the Calendar control? Without having your code it's difficult to figure out why the event handler is not called for you.
justinlee - Saturday, October 15, 2011 12:39 PM:
Hi Aknourenko
this code i work with calendar.dll. but event Onload and OnDateSelected not complete....
<html xmlns="www.w3.org/.../xhtml" >
<head>
<title>Calendar Page</title>
<script src="javascript/js_common.js"></script>
<script src ="../../../javascript/AddConfigurationLink.js"></script>
<script src ="../../../javascript/QueryString.js"></script>
<link type ="text/css" rel="Stylesheet" href="style.css"/>
<script language ="javascript" type ="text/javascript">
var inno = top.aras;
function LoadCalender() {
var currentDate = calendar.GetDate();
alert(currentDate);
}
function OnSelectDate(date)
{
alert(date);
}
</script>
</head>
<body>
<script type ="text/javascript" for="calender" event="Onload()">
LoadCalender();
</script>
<script type="text/javascript" for="calender" event="OnDateSelected(date)">
OnSelectDate(date);
</script>
<div id ="tblCanlendar" class ="clsCalendar">
<table cellpadding ="0" cellspacing ="0" style="width:100%; height:100%; border:0;">
<tr>
<td height="200">
<object id ="calendar" border ="0" style ="height:100%; display:block; width:100%;" classid ="../../../cbin/Calendar.dll#Aras.Client.Controls.Calendar">
</object>
</td>
</tr>
</table>
</div>
</body>
</html>
P/s: Sorry my english