Hello.
I am working on a common problem. . .restoring frameset context when a user
links directly to a page.
Loading the frameset isn't a problem. . .there are numerous examples of
simple Javascript procedures that will do it, like this:
if (top.location.href.indexOf("../index.html") == -1)
top.location.href = "../index.html";
I have that working just fine. However, the frameset displays the default
document in the target frame.
A more complex problem, it seems, is identifying to the frameset which
content the user linked to, and displaying that content in the target frame.
One approach is some fairly complex Javascript that rewrites the frameset,
as shown here:
http://www.webreference.com/js/column36/forcing.html
Is there a simpler way? It would be especially nice if the frameset document
didn't need to know up front the names of all the pages that it might be
called upon to display.
Thanks
-Mark