'lo everyone...
I'm building an intranet tool site here at work and have run into a small problem.
One of the content pages is a 2 (top/bottom) frame set. The lower frame is a PHP page that reloads using javascript "onLoad='document.location = "page.php?variable=n"'" about 10 times to update content in the upper frame using .id.innerHTML.
The problem I have is that each reload of the lower frame adds a history and "back" state for each reload. This has strange results if the user clicks the back button, basically overloading the id.innerHTML with the same information for each press of the back button.
What I'm looking for is a method of either altering last history state so that the back button takes them to the portal page in the parent frame, or somehow disallowing the lower frame refresh from adding a back button state.
The site is pretty much IE only, so that might allow a bit more options, if needed.
Any help would be appreciated.
The Jhereg
=~=~=~=~=~=~=~=~=~=~
I never lie.
I'm building a reputation for honesty so I can blow it when something big comes along... This ain't it.
I'm building an intranet tool site here at work and have run into a small problem.
One of the content pages is a 2 (top/bottom) frame set. The lower frame is a PHP page that reloads using javascript "onLoad='document.location = "page.php?variable=n"'" about 10 times to update content in the upper frame using .id.innerHTML.
The problem I have is that each reload of the lower frame adds a history and "back" state for each reload. This has strange results if the user clicks the back button, basically overloading the id.innerHTML with the same information for each press of the back button.
What I'm looking for is a method of either altering last history state so that the back button takes them to the portal page in the parent frame, or somehow disallowing the lower frame refresh from adding a back button state.
The site is pretty much IE only, so that might allow a bit more options, if needed.
Any help would be appreciated.
The Jhereg
=~=~=~=~=~=~=~=~=~=~
I never lie.
I'm building a reputation for honesty so I can blow it when something big comes along... This ain't it.