Sreenish

Sreenish

  • NA
  • 249
  • 32.8k

ondblclick is not working??

Jul 16 2015 12:54 AM
Hello..
Am using one calendar in my webform ...if i doubleclick on date cell it is not working??
if anyone knows  share the  answer...and am posting what i have tried...
 
 
Script::
 
<script type="text/javascript">
window.onload = function () {
var timer;
var el = document.getElementById('Calendar1');
el.onclick = function () {
if (timer) clearTimeout(timer);
timer = setTimeout(function () { alert('<%= Calendar1.SelectedDate.Date.ToLongDateString() %>'); }, 250);
document.getElementById("GridView1").style.display = 'block';
}
el.ondblclick = function Cal1() {
clearTimeout(timer);
alert('<%= Calendar1.SelectedDate.Date.ToLongDateString() %>'+"DoubleClick");
document.getElementById("Mdl1").style.display = 'block';
}
}
</script>
 

Answers (1)