Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: Re-directing access within Frames, September 14, 1998 at 08:05:31:

You are here: irt.org | About | Feedback | 9 [ previous next ]

Feedback on:
Re-directing access within Frames

Sent by
Kevin McNamara on September 14, 1998 at 08:05:31:According to the article, this code should force display of a frameset and load a file into a specific frame in Opera:

var correct_frame = 0 + (parent.nav ? 1 : 0);
if (parent.location.href == self.location.href || !correct_frame)
window.location.href = 'test.htm?display';

So if I read this correctly, the first line references the variable defined in the master frameset document, and also checks for the presence of a given frame in that document. (In this script, the given frame is not the one that accepts the search parameter.) The script then tries to load the master frameset if it can't find what it needs, and to load the file featuring this script into the frame that accepts the search parameter.

We've tried that here several times in Opera 3.21. We've been careful to use not only the same names, but also the same capitalization we use in our frameset. It does not seem to work. Opera just refuses to load the frameset, showing a message that it "cannot open the file." We're not sure what file--we don't get enough of a dialog box to see the complete path to the file that it can't open--but as Opera displays the requested file outside of the frameset, we suspect it can't open the master frameset file.

The file opens just fine, however, in NS and IE, and opening a document from outside the frameset forces the frameset, as desired and expected.

Why might this be? Is this a trick that won't work off line, like the familiar IE buggery? And even at that, we are developing and testing on a LAN; we're not entirely off line.

Thanks,

Kevin McNamara

Other feedback on 'Re-directing access within Frames' - show all

©2018 Martin Webb