FIrefox 16.0.2 Error: TypeError: parent is undefined
-
21-07-2021 - |
Question
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();
}
}
Solution
Shouldn't it be window.parent
? Just parent
will look for a variable called parent
, not for the parent frame.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow