Reputation: 17640
I have this function in my site and i'm getting the erorr Error: TypeError: parent is undefined
is there another way to target the parent frames this worked fine until the upgrade
function MyClass() {
this.UpdateEditorFormValue = function() {
for ( i = 0; i < parent.frames.length; ++i )
if ( parent.frames[i].FCK )
parent.frames[i].FCK.UpdateLinkedField();
}
}
Upvotes: 0
Views: 2960
Reputation: 2504
Shouldn't it be window.parent
? Just parent
will look for a variable called parent
, not for the parent frame.
Upvotes: 1