location.replace problem
- From: "Steve" <stevesuch@xxxxxxxxx>
- Date: 20 Jun 2006 01:31:55 -0700
Hi,
I am upgrading a legacy intranet site that is built within a frameset.
There are links on hundreds of pages to a search page which is loaded
within one of the frames. The new page I want to load needs to be
loaded into the top frame.
So that I don't need to modify all the links I have ammended the page
the links point to, which simply reads:
<html>
<body onload="top.document.location.replace('search.html');">
Loading Search...
</body>
</html>
thus loading the search page and still allowing the users to use the
"Back" button.
This works fine if users have navigated to lower pages in the site ie.
there are lots of pages stored in the "Back" history. The user can
click "Search", the new redirect page loads and immediately loads the
"search.html" out of the frameset. Clicking "Back" takes you to the
page you clicked the "Search" button from.
My problem is, if the "Search" button is clicked from the home page ie.
there is no back history available, the redirect page loads, then the
replace occurs but with a disabled "Back" button. So no way of getting
back to the home page again.
This isn't too much of an issue on most of the clients but on some it
causes the entire system to lock and require a reboot!
I've tried this with a very simple three page frameset and the problem
still occurs. Has anyone experienced this before or know of a way
around it?
Any help would be great!
.
- Follow-Ups:
- Re: location.replace problem
- From: Daniel Kirsch
- Re: location.replace problem
- Prev by Date: Cycling through several pages - Attention Dancer
- Next by Date: Re: location.replace problem
- Previous by thread: Cycling through several pages - Attention Dancer
- Next by thread: Re: location.replace problem
- Index(es):