View Full Version : Navigating IFrames

09-27-2002, 06:21 PM
I am working on a web application that uses multiple IFrames on one main page. The application progress is as follows. The main page has serveral hrefs that IFrame #1 uses to the get method from. The value that comes from the Main page link is used to query a DB and then populate an asp page in IFrame #1.

Once the asp page in IFrame #1 is created it contains specific href links that target IFrame #2 and the value of the Get is used to generate a new asp page for IFrame #2. All of this works very well.

The problem that I am having and need help with is -:- Whenever the ASP page for in IFrame #1 is changed IFrame #2 still contains the old data that was based off the previous IFrame #1 values. I need to be able to change the SRC of IFrame #2 based on the OnLoad event of IFrame #1. Any one have an Idea on how to do this?

09-27-2002, 11:24 PM
I just need to map out the path to the IFrame I wanted to change.

Here is an example if anyone else needs it.

<Body onLoad="top.frames'Framename'].document.iFrameName.location.href='URL';">