Home Unanswered Active Tags New Question

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?

Asked by S. Ansari 4 years ago.
Replies
Usually it is dpc1 (by default) , are you sure it is dps1 ?
Comment posted by Anonymous 4 years ago.
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.
Comment posted by Dan Letecky 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java