You can use some JavaScript to reload the two frames at the same time. Here
is a small example:
<script language="JavaScript">
function submitForm()
{
document.frmMyForm.submit();
parent.topFrame.location.href='navPage.htm';
}
</script>
Then in your HTML page in the loginPage, do this:
<form name="frmMyForm" id="frmMyForm" target="mainFrame"
action="someProcessingPage.asp or jsp or whatever" method="post">
<input type="text" name="txtName" id="txtName">
<input type="text" name="txtPassword" id="txtPassword">
<input type="button" value="login" id="btnSubmit" name="btnSubmit"
onclick="JavaScript:submitForm();">
</form>
What happens here is the following:
The user enters his name and password in the top frame and clicks the button
That button triggers the function submitForm()
The function submits the form from the top frame to the main frame and
after the that, it changes its location (parent.topFrame.location) with a
new page.
Instead of "parent.topFrame.location.href" you could also use
"location.href" as it is the current frame you want to refresh.
Hope this helps,
Imar
At 07:54 PM 8/2/2001 +0000, you wrote:
>I am new to web design so please be patient with me.
>
>I have a page using frames. The left frame, named "navbar" contains user
>id and password fields. When the user logs in, the frame "main" changes as
>it is supposed to. The upper frame remains the same all the time. What I'm
>trying to do is cause the the frame with the login fields to change to a
>navigation page when the user clicks the submit button. Any ideas?
>
>Thanks.