Results 1 to 6 of 6

Thread: Refresh

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Australia
    Posts
    149

    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

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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..

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Australia
    Posts
    149
    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

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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..

  5. #5
    Addicted Member finn0013's Avatar
    Join Date
    Jan 2001
    Location
    Charleston, SC
    Posts
    222
    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.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Australia
    Posts
    149
    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
  •  



Click Here to Expand Forum to Full Width