This is an alternate solution for the problem where two frames need to be loaded with different content. This code solves that problem.
Instead of opening a new frameset, the Left ( navigation ) frame and the Main ( content ) frame are both refreshed.
Once you get this working, you can add a button to the form in the main frame that will return
you to the original frame content in both frames.
JSHeader On View Template Form: Navigation FrameName is left Framename for Frame containing the View template is main function change2Frames(URL1, URL2) { parent.left.document.location.href=URL1 parent.main.document.location.href=URL2; } View Column Formula using @Commands: Projects.ByCompany is a view template DocKey is a hidden field that contains the Unique Doc ID Label is the viewable text in the anchor tag LeftNav is the form that contains the Navigation label:=@Left(Owner;28); path:= @ReplaceSubstring("/" + @Subset(@DbName; -1);"";"/"); URL1 := path + "/LeftNav?OpenForm"; URL2 := path + "/Projects.ByCompany/" + DocKey + "?OpenDocument"; Combo1 := "javascript:change2Frames(\'" + URL1 + "\',\'" + URL2 + "\')"; "[<a href=" + Combo1 + ">" + label + "</a>]" Button on the main form in the 2nd frameset using JavaScript. This returns you to the default View path = location.pathname; pos = path.indexOf(".nsf"); path = path.substring(0, pos+5); IDKey = document.forms[0].DocKey.value; URL1 = path + "LeftNavView?OpenForm"; URL2 = path + "Projects.ByCompany?OpenView"; change2Frames(URL1, URL2)
This was first published in June 2001