DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » Bugs » Javascript error Unexpected call to method or property access

Javascript error Unexpected call to method or property access

I'm using DayPilot Ver 4.6 and developed a simple day view using schedular control, it works fine but randomly it returns "Unexpected call to method or property access" javascript error and after that the control never works it keeps returning "dps1 is null or not an object" dps1 is the id of the schedular control on the page. How do I get rid of the javascript errors?

S. Ansari - 4/2/2008 12:07:23 PM
Usually it is dpc1 (by default) , are you sure it is dps1 ?
Anonymous - 4/3/2008 5:09:59 PM
This error appears in Internet Explorer when you try to modify the page before it's fully loaded. This shouldn't happen when you use DayPilot alone. If you add your own JavaScript code that will delay page loading or touch the page DOM structure it may happen that DayPilot's init code will be executed before this code is finished.
Dan Letecky - 4/9/2008 11:57:41 PM
Post reply