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

JavaScript runtime error: Object doesn't support this property or method

Asked by Michael
11 years ago.

I am using Visual Studio 2010. I can create a new project and use 7.3.2841 with no problem.
When I try and create exactly the same calendar in my existing project I get
JavaScript runtime error: Object doesn't support this property or method
and it highlights a.length as in:
DayPilot.puc=function(d){var a=d.childNodes;if(a){l=a.length;for(i=0;i<l;i+=1)

I was using the lite version so I replaced the reference to DayPilot.dll with 7.3.2841.

Is there something more I need to do to my existing project other than reference DayPilot.dll 7.3.2841?

Answer posted by Dan Letecky [DayPilot]
11 years ago.

This was a bug in DayPilot.puc(). It only happens if you have an element with id="l" on your page and open it in IE. See also:

http://stackoverflow.com/questions/5647299/ie-error-object-doesnt-support-this-property-or-method

It's fixed now in build 7.3.2857. You can download it in the sandbox:

http://www.daypilot.org/sandbox/

Thanks for reporting the bug!

Comment posted by Michael
11 years ago.

When I use the version from the sandbox and create a completely new page with a calendar on it displays ok when run.
However the calendar created in 6.7.2397.1 lite which I was using gives the following error when I run it:
JavaScript runtime error: Object doesn't support this property or method, stops at c=r.insertCell(-1) as in

this.$5f=function(){var r=this.nav.fullHeader.rows[0];c=r.insertCell(-1)

Any ideas? Thanks

Comment posted by Dan Letecky [DayPilot]
11 years ago.

This was a similar bug, it should be fixed now in build 7.3.2861.

http://www.daypilot.org/sandbox/

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