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

JScript runtime error on postback when using an updatepanel

Asked by Darren
12 years ago.

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?

Comment posted by Darren
12 years ago.

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 Dan Letecky [DayPilot]
12 years 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.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.