|
-
Apr 30th, 2001, 08:24 AM
#1
Thread Starter
Addicted Member
Refresh
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 -|-
Email: [email protected]
Website: http://www.hurgh.org/
Unix, Linux, FreeBSD, OpenBSD, Solaris, Windows
C, C++, PHP, VB6, ASP, VBScript, JavaScript
-
Apr 30th, 2001, 04:30 PM
#2
Frenzied Member
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:
Code:
<meta http-equiv="refresh" content="30; URL=http://www.myURL.com/Whateverpage.asp">
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Apr 30th, 2001, 05:56 PM
#3
Thread Starter
Addicted Member
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 -|-
Email: [email protected]
Website: http://www.hurgh.org/
Unix, Linux, FreeBSD, OpenBSD, Solaris, Windows
C, C++, PHP, VB6, ASP, VBScript, JavaScript
-
Apr 30th, 2001, 06:58 PM
#4
Frenzied Member
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.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
May 1st, 2001, 07:29 AM
#5
Addicted Member
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:
Code:
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.
-
May 1st, 2001, 09:55 AM
#6
Thread Starter
Addicted Member
thanks for your help,
I will look into that and see what I come up with
-|- Hurgh -|-
Email: [email protected]
Website: http://www.hurgh.org/
Unix, Linux, FreeBSD, OpenBSD, Solaris, Windows
C, C++, PHP, VB6, ASP, VBScript, JavaScript
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|