PDA

Click to See Complete Forum and Search --> : Refresh


hurgh
Apr 30th, 2001, 08:24 AM
Is there a way that you can refresh just one frame and not a whole page?

I have a site with 3 frames. I only want one to be refreshed, is there a way that i can do this?

There is a Top frame, Navigation frame, and a main frame, is there a way that I can use the navigation frame to refresh the main frame, useing the response.redirect "URL" format?? Or is there a way to specify which frame that URL is ment to be opened in?

Thanks

-|- Hurgh -|-

monte96
Apr 30th, 2001, 04:30 PM
I assume you are talking about an Automated refresh?

Just put this in the HEAD tag of the page that is in the frame you want refreshed:


<meta http-equiv="refresh" content="30; URL=http://www.myURL.com/Whateverpage.asp">

hurgh
Apr 30th, 2001, 05:56 PM
Actualy it is not an automated refresh sorry, I want it only to happen when a user logs in, so like the user logs in then I want the main frame to refresh but not the top one (the user login stuff is in the navigation frame).

Any More Sugestions?

-|- Hurgh -|-

monte96
Apr 30th, 2001, 06:58 PM
Ok... your not talking about a refresh then... your talking about redirecting to a new page. All the other frames will stay the same. Use the target attribute of the FORM tag on your login page to send the login data to the next form in the main frame. And process the login data in the main frame. That way if the login is not successful, an error message can be placed there as well.

finn0013
May 1st, 2001, 07:29 AM
I had something similar that I was working on - It was originally ASP and then we converted it to JSP. The only way that I could get it to do what you are talking about is the following...

When the MAIN frame submits, at the top of the page it submits to, have the following JavaScript run:


var good_url = "/_Jason/CDM_Help/cdm_navbar.htm";
parent.header.location.href=good_url;


I do not remember a whole lot about the syntax of this code, but it should not be any trouble finding the methods/functions online.

The way we set it up, is so that the page submitted, and if the value was correct (in your case, if person logged in correctly), then the page was loaded so that the JavaScript would fire right away, loading the menu. If the value was incorrect, then the JavaScript would not be run.

hurgh
May 1st, 2001, 09:55 AM
thanks for your help,
I will look into that and see what I come up with

-|- Hurgh -|-