PDA

View Full Version : Loading different iFrame pages from main page?


Anticrombie
07-22-2005, 03:37 AM
Hey guys! Was wondering if it is possible to pass a variable from one page to another to set the default iFrame page. Here's my dilemna:

I have a homepage (landing page) that has page navigation on it. The rest of my pages are a single page with an iFrame in the middle where all the content changes.

The problem I am having is when I am on the homepage, and click on the navigation (say, 'AboutUs'), how can I get the secondary page to load, then instead of the 'default iFrame' page, the 'AboutUs' page loads in the iFrame?

Make sense? I was thinking I would have to save a localObject from the homepage, then when the secondary page loads, reads that localObject to learn what iFrame contents needs to be displayed... But didn't know how to begin to go about doing this, or if this is the easiest way.

Buttons are in javascript (not Flash).

Thanks in advance.