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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to refresh parent frame, then jump to anchor in parent?

Status
Not open for further replies.

dlkraft

Programmer
Dec 5, 2000
47
US
I am working on an ap written by a vendor. The ap uses frames. The vendor is not available for questions.

I am able to use javascript provided by the vendor to get the page I want to open in the parent frame and can even get to the appropriate anchor on the page.

Problem is, the page in the parent frame jumps right to the anchor and doesn't refresh, so session variables set in the child page aren't seen by the parent page.

How can I get the parent frame to 1) refresh, 2) then go to the appropriate anchor?

Here is the javascript in the child frame which calls the page in the parent frame:

<script language="JavaScript">
window.parent.frames[2].location = "../dsp/rs_main.cfm?#injections";
document.location="../dsp/blankpage.cfm";
</script>

Thanks for any help you can give!

Dave
 
Going to the anchor is desired behavior, but the parent page being called by the child page also has to refresh before going to the anchor.

So the issue is, can I get a refresh on the parent page before the parent page gets to the anchor?

Thanks!
 
anyone have any ideas on this issue? I am having the same problem. I want to have the page refresh but also point to an anchor.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top