Refresh webpage with javascript

G

Gobind

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
 
D

David Golightly

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top