SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Confirmed Halfwit
    Join Date
    Oct 1999
    Location
    Vancouver, BC, Canada
    Posts
    983
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Umm... I have a page with two framesets.

    The outside frameset is the navigation area. The inside frameset is the content area.

    Inside frameset has 4 frames, two are relative, 2 are static. (I had to set it up this way to get the text area centered no matter the resolution...

    My question is: How can I get the inside frameset (content area) to load a new frameset when a user clicks a link from the outside frameset (the navigation area).

    The site is at http://www.empyr.com if you want to check it out. My goal is to get it so that the whole page doesn't have to reload for every click.

    Thanks.

    ------------------
    www.gimmeabuck.com <-- Have you given me a buck yet!?



  2. #2
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Instead of putting all your frames in a single HTML file, put your inner frameset in its own HTML file, which you load into its own frame.

    Here's a basic example to show you what I mean.

    In index.html:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    &lt;FRAMESET ROWS="100,*,100"&gt;
    &lt;FRAME NAME=top SRC=...&gt;
    &lt;FRAME NAME=innerframes SRC=innerframes.html&gt;
    &lt;FRAME NAME=bottom SRC=...&gt;
    &lt;/FRAMESET&gt;
    [/code]

    And in innerframes.html:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    &lt;FRAMESET ...&gt;
    &lt;FRAME NAME=inner1 SRC=...&gt;
    &lt;FRAME NAME=inner2 SRC=...&gt;
    &lt;FRAME NAME=bottom SRC=...&gt;
    &lt;/FRAMESET&gt;
    [/code]

    Then to reload a new set of inner frames, you'd just make a link with TARGET=innerframes.



    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!

  3. #3
    Confirmed Halfwit
    Join Date
    Oct 1999
    Location
    Vancouver, BC, Canada
    Posts
    983
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect!

    Now why didn't I think of that? Oh well. I guess that's why they pay you the big bucks, right? grin.

    Thanks for the quick help, Kevin.



    ------------------
    www.gimmeabuck.com &lt;-- Have you given me a buck yet!?



  4. #4
    Confirmed Halfwit
    Join Date
    Oct 1999
    Location
    Vancouver, BC, Canada
    Posts
    983
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm.. I was thinking a bit more about this...

    I'd like to be able to allow the users to bookmark the individual website sections seperately... ie: empyr.com/msg_board/

    This way, if they want to go to the msg_board they can add it to their favorites instead of having to go to the main area and then click the msg board link every time.

    What do you think?

    ------------------
    www.gimmeabuck.com &lt;-- Have you given me a buck yet!?



  5. #5
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The inability to bookmark specific pages/sections of a site is the main argument against Frames. IF you need this kind of functionality, you should design without Frames.

    You could of course set up index.html files in the various directories of your site that load your frameset with the appropriate section, then refer your visitors to those addresses when they want to create bookmarks. This will have to be a manual process for your users, however.



    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •