This is a migrated thread and some comments may be shown as answers.

ParentNode Error

1 Answer 26 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 13 Mar 2012, 09:34 AM
Hi,

I'm trying to implement the advanced template scenario. I'm getting an error when trying to load the advanced form.

The error is located:

_initializeAllDayCheckbox: function()
{
    var allDayCheckbox = $("#" + this._templateId + "_AllDayEvent");
    var controlList = $(allDayCheckbox[0].parentNode.parentNode.parentNode);

This is located in AdvancedForm.js

It's happening with or without having this in the AdvancedForm:

<li class="rsAllDayWrapper">
    <asp:CheckBox runat="server" ID="AllDayEvent" CssClass="rsAdvChkWrap" Checked="false" />
</li>

The form still works, although I did notice it does not close unless I refresh the page (first time).

Could you help with this?

1 Answer, 1 is accepted

Sort by
0
Alan
Top achievements
Rank 1
answered on 13 Mar 2012, 09:51 AM
Please ignore, looks like it automatically started working...magic... :)
Tags
Scheduler
Asked by
Alan
Top achievements
Rank 1
Answers by
Alan
Top achievements
Rank 1
Share this question
or