I tried finding an answer on http://www.quirksmode.org/ without success.
I am attempting a complicated Frames structure. I have made it work in IE,
but not Netscape.
I begin with three frames, where the two lower ones are within a Frameset
within the master Frameset:
1111111111111111111
2 3333333333333333
2 3333333333333333
2 3333333333333333
I can change the URL of the content of any of the three frames with commands
such as these:
parent.frames[0].location='masthead.html';
parent.frames[2].location='sidebar.html#068';
parent.frames[3].location='mainspace.html#068';"
These work in Netscape as well as IE.
The cross-browser differences begin after I split up frame 3 into more
frames. I do this (upon a user click) by loading into frame 3 an HTML file
that is nothing but code for a new frameset. The frameset divides this
window into three columns. Each column loads with an HTML file inside it.
Even here, Netscape and IE both load the new page and display the new
content. The trouble is when I try to substitute new files for the ones in
these sub-frames. IE does what I want, Netscape remains frozen.
To change the content of the frames within the document within the #3 frame
(which itself is within a frameset within a frameset within the master
window), I use:
parent.frames[2].frames[0].location='Producer.html#E1'
or:
parent.frames[2].frames[2].location='reasons.html#C2'
I have also been able to use:
parent.frames[2].document.frames[0].location='Producer.html#E1'
or:
parent.frames[2].document.frames[2].location='reasons.html#C2'
And even:
parent.parent.frames[2].frames[0].location='Producer.html#E1'
IE handles them all. Netscape doesn't do anything. Is there a way of
addressing these inner frames via Netscape that I have failed to consider?
--
David Hayes
(remove the name of the programming language from email address to make it
usable)