I can’t get the “onDateSelected” event to fire on a calendar using DHTMLX Touch.
Here’s a test page :-
And the source for it is :-
<!DOCTYPE html>
<html>
<head>
<title>Calendar Test</title>
<link rel="stylesheet" type="text/css" href="codebase/touchui.css" />
<script type="text/javascript" src="codebase/touchui.js"></script>
</head>
<body>
<script type="text/javascript">
dhx.ready(function(){
dhx.ui({
view:'calendar',
id:'calendar'
})
$$('calendar').attachEvent('onDateSelected',function(date){
alert(date);
})
})
</script>
</body>
</html>
In my application I want a user to click / tap a date in the calendar and use the date selected to filter a list. It doesn’t work so I stripped it down to see whether the event itself was firing and it doesn’t appear that it is.
What am I doing wrong?