Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE Refresh button Reloads application - not refresh page 1

Status
Not open for further replies.

squirleegirl

Programmer
Jun 24, 2003
59
US
Hi! I've got a problem that I'm not sure exactly what the problem is so I don't know where to look to find the answers.

I've got an asp application that was developed by someone else that uses frames - left side contains logon then tree-structured menu options and the right side contains whatever I've chosen from the menu.

On the right side is an main information sheet that contains links to fill out forms which opens in new windows. After I complete a form and save it, I am returned to the main page (left side menu, right side main information).

Problem is the new information is not there - Okay, no big deal need to refresh. Here's the problem: IE refresh button doesn't refresh the page, but reloads the app to where I am back at the login screen. Very frustrating for the users. However, if I right-click on the right frame and use the refresh option there, then the page refreshes okay.

So, I'm assuming the problem is because the IE refresh button is looking at the left frame in which to refresh (maybe?) However, not sure if this is a caching issue or what. I don't necessary need the page to refresh on its own, but the users like the refresh button.

Does anyone have any ideas as to what the problem is - at least this way I will then I will know where/how to start searching for answers.

Thanks,
Squirleegirl
 
The IE refresh button is refreshing the page which is contained within the browser window, in this case the frameset document, which then of course reloads the default pages into each frame.

You could use session variables to hold the urls of the documents that should be displayed in each frame and then rewrite the frameset document to read these session variables and use them instead of the default src if they exist, eg:

Code:
<%
If session("Frame1URL")<>"" then
strURL=session("Frame1URL")
else
strURL="defaultpage.asp"
end if
%>
<frame name="frame1" src="<%=strURL%>">

In this way every time the page is refreshed it will load the correct pages into the frmaes.
 
Frames Bad :)

Sory, neil hit the nail on the head but I wanted to add some input :)

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
Help, the rampaging, spear-waving, rabid network gnomes are after me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top