mcgrailm
mcgrailm

Reputation: 17640

FIrefox 16.0.2 Error: TypeError: parent is undefined

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

Answers (1)

clentfort
clentfort

Reputation: 2504

Shouldn't it be window.parent? Just parent will look for a variable called parent, not for the parent frame.

Upvotes: 1

Related Questions