Hi
I am using dhtmlxscheduler. I have used the following code to avoid event creation on holidays including saturday and sunday.
This code is working fine in firefox. But not in IE…please tell me the solution
scheduler.attachEvent(“onBeforeLightbox”,function(id){
var ev = this.getEvent(id);
var date = ev.start_date;
var hDay=null;
if(date.getDay()==0 || date.getDay()==6 ){
alert(“It’s a Holiday”);
scheduler.deleteEvent(id);
}
return (date.getDay()&&date.getDay()!=6 )
})
Thank You
Vineetha
Hello,
What is the error ?
Please provide the complete code of scheduler initialization.