Refresh webpage with javascript

Discussion in 'Javascript' started by Gobind, Aug 20, 2007.

  1. Gobind

    Gobind Guest

    Hello

    I have three frames on my webpage, and two remain constant (the top
    and left menu bar). Depending on the selection the user makes in the
    left menu, the third frame changes the pages (jsp). Now, my
    application has a security system which is controlled by the left menu
    bar which does not change until the entire page is reloaded (not just
    the main frame). And if a user actually goes into his profile settings
    and makes changes to his profile (ie, changes his security levels), I
    need that to reflect in the left menu bar. The only way I can get this
    done is if I reload the entire page (all the three frames). But if I
    do a submit in the mainframe, it just loads the new page in the
    mainframe and not in the entire window. Not sure how to fix this. Can
    someone help me with this?
    I hope this is clear enough.

    Thanks in advance.

    Gobind
    Gobind, Aug 20, 2007
    #1
    1. Advertising

  2. On Aug 20, 10:56 am, Gobind <> wrote:
    > I have three frames on my webpage, and two remain constant (the top
    > and left menu bar). Depending on the selection the user makes in the
    > left menu, the third frame changes the pages (jsp). Now, my
    > application has a security system which is controlled by the left menu
    > bar which does not change until the entire page is reloaded (not just
    > the main frame). And if a user actually goes into his profile settings
    > and makes changes to his profile (ie, changes his security levels), I
    > need that to reflect in the left menu bar. The only way I can get this
    > done is if I reload the entire page (all the three frames). But if I
    > do a submit in the mainframe, it just loads the new page in the
    > mainframe and not in the entire window.


    Ugh! Frames. That alone suggests you should consider reworking your
    front-end. Granted, there are legitimate reasons for frames, but
    creating a security buffer by loading both secure and insecure windows
    in peer frames is not one of them.

    To your question:

    top.location.reload();

    -David
    David Golightly, Aug 20, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eddie

    How to Refresh my WebPage ?

    Eddie, May 17, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    615
    Eddie
    May 17, 2004
  2. Replies:
    1
    Views:
    401
  3. Paul
    Replies:
    14
    Views:
    825
    Alexey Smirnov
    Jun 19, 2008
  4. sifar
    Replies:
    5
    Views:
    387
  5. soren625
    Replies:
    2
    Views:
    357
    soren625
    Dec 12, 2006
Loading...

Share This Page