What you have to do is use the onLoad of the content frame set the Menu
frame to where you want it
You may want to do this in a more general fashion -- eg, the user may
be positioned in the menu frame and hit the back button -- shouldn't
the content change to reflect the menu?
The easiest way I have found to keep track and synchronize multiple,
interrelated frames is to introduce another, hidden, frame to maintain
control and synchronization.
Lets name this hidden frame the Program frame
It contains the _javascript_ instructions to manipulate the other frames
function changeContent(contentPage)
{
top.Content.document.location = "contentPage";
// add code to synch Menu here
}
function changeMenu(menutPage)
{
top.Menu.document.location = "menuPage";
// add code to synch Content here
}
For example the menu frame would contain some thing like:
top.Program.changeContent("myContentPage.cfm");
for each menu action
And the content page would contain:
<body >
Once you are doing all the frame manipulation in the Program frame, it
is relatively easy to do whatever necessary to synchronize the other
frames.
During development, I usually make the hidden frame a few rows in size
so I can click on it to display source.
If there are a lot of functions in the Program frame or if they are
complex, I usually add another temporary frame at the bottom -- a
control panel with buttons and input fields where you can enter the
info required to manually trigger the Program functions.
Program
--------------------------------
M |
E | Content
N |
U |
--------------------------------
Control
Once the page is debugged, you can hide the Control frame, or drop it
entirely
HTH
Dick
On Apr 5, 2004, at 3:27 AM, Thane Sherrington wrote:
> This appears to be a widespread problem, from reading on Google, but I
> can't find a fix for it.��I have two three frames on a page:
>
> Header
>
> M Content
> E
> N
> U
>
> When I click on a menu item, content page changes, and so does the
> menu
> (the menu is keyed to the content frame) but when I click the Back
> button,
> the content page changes, but the menu doesn't revert back.��Is there
> a way
> to reload both?
>
> T
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

