Hi all,
I've got a site that works generally quite nicely (http://www.mbfys.ru.nl/neuropi/). Our group decided early that, despite its drawbacks, we wanted to organize it using frames. So we have a three frame set up with a menu frame, banner frame, and main content frame.
Two issues that needed to be addressed by this set up are:
1. To circumvent the problem of bookmarking
2. To update my menu based upon the current content
To do the first, I use a "?" in the url which indicates the content to load; index.htm parses this url and loads the correct content.
To do the second, I have a bit of code in every content pane which:
1. Checks if it is the top pane, and if not loads index.htm?itself
2. Using an onload function, calls an update function in the menu frame:
Code:
function updateMenu() {
var d = parent.frames["menuFrame"];
d.updateMenu("menu_news");
}
This
usually works fine. However, once in a while the menu simply does not update! I get no errors in the error console, so this is baffling. Could it be a refresh problem? Is it dependent on how quickly the pages load?
Thanks in advance!