Forum Moderators: open

Message Too Old, No Replies

Help with multiple IFrames on a single page

Is there a way to reflect the IFrames in the address bar?

         

Fribble

1:00 am on Apr 6, 2006 (gmt 0)

10+ Year Member



I have a page that I am building with three horizontal content areas:

¦-------------¦
¦ Header .. ¦
¦-------------¦
¦ .....Row 1 ¦
¦-------------¦
¦ .....Row 2 ¦
¦-------------¦

Row 1 is an IFrame controlled by a menu of 5 different options, each of which will load a different page in the frame.

Row 2 works the same way with a different menu, the idea is to allow the user to choose any combination at any given time.

Here is what I want to get out of the setup:

  1. The user should not have to wait for the entire page to reload when he selects an option from either row - just the requested content.
  2. There should be something reflected in the address bar so the combo can be bookmarked or directly addressed.

Is this possible to do? All I've found so far is IFrames which would allow each frame to load seperately, but would not allow me to directly address any given combination. (The URI for the container page remains)

Could I somehow do this with named anchors on the main page? The idea would be to put a unique address in the address bar so people could go directly to their combo of choice.

Any help is appreciated,

Fribs

tedster

1:12 am on Apr 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To get the url to be unique for each combination of pages loaded will take some javascript. We've got a script here that you can extrapolate from.

[webmasterworld.com...] -- Message #21 (FORCE MANY PAGES INTO FRAMES)

The script was written so that arrivals at an orphaned page will have that page put into a parent frameset. But using this approach also happens to generate a unique url for each frameset configuration.

Fribble

2:11 am on Apr 6, 2006 (gmt 0)

10+ Year Member



Awesome, thanks Tedster!