Click to See Complete Forum and Search --> : *** Refresh/Reload Problem in a page containing Frames ***


hari123
01-20-2003, 11:20 AM
Hi,

I have the following scenario. My web page contains two frames. The left frame contains Menu and a set of links. The Right frame is the main frame and the links in the left frame gets opened in the rightframe. When I first load the screen, by default the "main.html"gets opend in the right frame.

If I click on "link1.html" in the Menu, link1.html is getting opened in the right frame. Now if I click on browser refresh/reload, instead of refreshing/reloading the "link1.html", the "main.html" is getting loaded in the right frame.

What should I do if I want to reload/refresh the link1.html instead of main.html on clicking the browser reload/refresh. Is it some thing to do with the http server ?

Thanks in advance

Haribabu

AdamGundry
01-20-2003, 11:33 AM
There is no easy way around this. When you click "Refresh", the browser re-fetches the page from the server. In your case, it fetches the frameset document, then files contained in the frames. Because the frameset specified main.html to be loaded, that is what it will load.

You might be able to pass the current page via cookies, so that when the frameset is loaded it checks the cookie and writes in a different source file for the frame.

Adam