Foolproof method to refresh frames
Posted on 2002-04-29
window.top.location.href = "default.asp"
// End -->
This refreshes the entire frameset and reloads the "buttons" frame which now knows the user is logged in and will display the additional buttons. This works 99% of the time. In fact, I can not duplicate the problem on my machine (but I also have my browser set to never cache pages). I am getting some reports that some users, from time to time, won't have the frameset refresh and they never see the addition "logged in" user buttons. I am assuming that this is due to some sort of browser caching. Does any one have a "stronger" method to use to force all the frames to reload? Obviously, the user can just hit "refresh" to have the new frames load, but we are dealing with very unknowledgeable users. I have added disclaimer text to the page to tell the users this, but it looks tacky. I have tried the ASP Response.Redirect method, but again this only loads into the frame that the response object is called from (in this case, the "body" frame). Any help is appreciated.