search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Javascript error Unexpected call to method or property access

Asked by S. Ansari
14 years ago.

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?

Comment posted by Anonymous
14 years ago.
Usually it is dpc1 (by default) , are you sure it is dps1 ?
Comment posted by Dan Letecky
14 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.
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.