In one of the frames, I need to call that function in the parent frame. I have it set up like so:
In MS Internet Explorer it works great. It does just what I want it to. However, in Netscape 3.01, it gives me an error saying "window.buildindx not a function".
It seems as though, in Explorer, it allows it to be called using the parent (window) object, but in Netscape it doesn't recognize it.
I may be doing something wrong, but I would appreciate any advice you could give me.
In order for one frame to call a function defined in another frame, the caller must have a reference to the frame object containing the function. In most cases, this is just
In a two-framed document containing frames named "left" and "right," for example, the left frame can call the right frame's functions through the expression
Similarly, to call a function defined in the parent, or frameset document, all you need is a reference to the parent. Thus, the expression
parent . right .function_name
is sufficient to call the parent frame's functions.
It appears that this is exactly what you were trying to do -- that is, to call a parent frame's function from within a child frame. Based on what you have told me, it also appears that your code is correct. So why, do you suppose, does it work in Internet Explorer but not in Netscape Navigator?
<frameset> tag of a frameset document. This means that if you want to call a function defined in a frameset document, the function definition should occur before the first
April 25, 1997