Click to See Complete Forum and Search --> : can't use other frame 's function with nn6
erald
04-03-2003, 11:58 AM
I'am using a multiframes window. I try to use a frame function from an other frame.
it work with IE5 but not with NN6.
I have tried "parent.frame [x].function()"
, "parent.framename.function()"
it doesn't work!
need help!
gil davis
04-03-2003, 12:24 PM
Trywindow.top.frameName.functionName();
erald
04-03-2003, 01:55 PM
it doesn't work.
i tried :
window.parent(top).framename(frame[x]).window.document.function().
it also doesn't work.
does it work on your computer?
perhaps the problem does not come from netscape, but why would it work with ie5?
i have this problem only with functions i have made, i can use parent.frame[x].document.write() for example.
i really don't understand anything...
khalidali63
04-03-2003, 02:17 PM
I have 2 rames
in the left frame I have this code
<script type="text/javascript">
function Process(){
var frm = document.form1;
document.form1.t1.value = parent.frames[1].Process();
}
</script>
</head>
<body class="body">
<form name="form1" action="" onsubmit="">
<input type="Text" name="t1"/>
<input type="Button" value="process" onclick="Process()"/>
</form>
in the right frame I have this function
<script type="text/javascript">
function Process(){
return "This is conents frame returning validity"
}
</script>
I have tested it in NS and IE both it works..
Hope this helps
Cheers
Khalid