Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Sep 2004
    Posts
    10
    Member #
    7733
    Hi,
    I'm starting to learn CSS a bit. I have a layout set up. I'd like to populate the center area with content selected from a menu or list on the left.

    Here's how I did it in HTML with frames:
    (this is the code from one link in the "left" frame)
    <p><IMG SRC="visual\ball.gif" WIDTH=14 HEIGHT=14 BORDER=0 ALIGN="LEFT" ALT=""> <a HREF="majmin.htm" TARGET="MidFrame">Bob Miner Jazz</a>

    How can I get varying sources (ie: "HREF="majmin.htm") into one center area (ie: TARGET="MidFrame">) ?

    THanks
    Bob

  2.  

  3. #2
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    You can't exactly... with frames, each one is effectively a separate HTML page. This is not the case with normal page design where there is only one page, but varying content.

    What you need to do is use server side includes to keep the standard "look and feel" on the top/sides etc. whilst the centre area changes depending on context. You can do this one of two ways...

    a) Create an index page and then pass it parameters. Depending on the parameter given you include a different file into the centre area (eg. href="index.php?pg=home")
    b) Take the common bits and put them into include files. Create individual pages for each of the areas of your site and then include the common files.

    hth

    sean

  4. #3
    Junior Member
    Join Date
    Sep 2004
    Posts
    10
    Member #
    7733
    Thanks Sean,
    So in example a):
    The menu area left would pass new content parameters for the center area?
    Would the entire page redraw? Ideally I'd like the center only to redraw.

    In example b):
    Every menu click would put up a new page, while the common bits appear the same, the center would change accordingly.
    This would absolutely redraw every time.

    I'll be messing with this so I might end up answering my own redraw questions.

    whats "hth"?

    Bob

  5. #4
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Others will know the answer better than me, but I think the content of the common areas of the page will cache and will redraw but will not have to reload.

    Hth->Hope that helps! :-)

    Sean

  6. #5
    Junior Member
    Join Date
    Sep 2004
    Posts
    10
    Member #
    7733
    Hope that helps.....what a NEWB I am!!!!
    Thanks


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:19 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com