Home Unanswered Active Tags New Question

JScript runtime error on postback when using an updatepanel

I am using an updatepanel around the DayPilot Scheduler. The scheduler performs a postback every minute to refresh the items on the schedule. If I am using the control i.e. scrolling, drilling through a menu or collapsing the navigation within the scheduler as it is about to perform a postback, I receive a jscript runtime error like:

Microsoft JScript runtime error: Unable to get value of the property scrollLeft, scrollTop, innerHTML object is null or undefined

Preserving the scroll positions can be done but it still doesn't change the fact that if I am using the scheduler control as it performs a postback the error will still occur.

Does anyone here know how I might be able to resolve this issue or even suppress the errors?

Asked by Darren 6 months ago.
Replies

EDIT: The error does not show on browsers chrome, opera or firefox but you can see the panel quickly reloading as if it has recovered from the error... i could live with that!

I also read something about Javascript not supporting IE9 so I tried to use this but no joy:
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=7" />
</customHeaders>
</httpProtocol>

Comment posted by Darren 6 months ago.

Darren, I will take a look at it.

However, there is a built-in helper that allows to refresh the events automatically. It's based on CallBack and it should work smoothly:

http://www.daypilot.org/scheduler-autorefresh.html

As a bonus, it will be much faster than refreshing using UpdatePanel.

Comment posted by Dan Letecky [DayPilot] 6 months ago.
New Reply
This reply is
Your name (optional):

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