Hi,
I have a frameset which contains a navigator function I've created in the top frame, and a form in the bottom frame. In the form's onLoad event, I'm trying to call a function contained in the top page's <HEAD> tag. When I first load the frameset, it loads fine, but when I use the navigator to jump to a different form on the bottom and the onLoad event is called again, I get a "Permission denied" error.
The forms I'm using have the following function:
if(parent.frames[0] && parent.frames[0].Go) {parent.frames[0].Go();}
If I put an alert(parent.frames[0]) statement just before this statement in the onLoad event, I get an [object] message back. However, if I try to call any property of parent.frames[0] in the alert statement, such as parent.frames[0].name, I get the error. So, for some reason, I have access to the frame object, but not the properties of the frame object. I get the same problem if I call the frame by name (i.e. parent.frames['navig']).
Any ideas why I wouldn't be able to do this?
Thanks in advance,
Sam
I have a frameset which contains a navigator function I've created in the top frame, and a form in the bottom frame. In the form's onLoad event, I'm trying to call a function contained in the top page's <HEAD> tag. When I first load the frameset, it loads fine, but when I use the navigator to jump to a different form on the bottom and the onLoad event is called again, I get a "Permission denied" error.
The forms I'm using have the following function:
if(parent.frames[0] && parent.frames[0].Go) {parent.frames[0].Go();}
If I put an alert(parent.frames[0]) statement just before this statement in the onLoad event, I get an [object] message back. However, if I try to call any property of parent.frames[0] in the alert statement, such as parent.frames[0].name, I get the error. So, for some reason, I have access to the frame object, but not the properties of the frame object. I get the same problem if I call the frame by name (i.e. parent.frames['navig']).
Any ideas why I wouldn't be able to do this?
Thanks in advance,
Sam
Comment