HTML Help Regarding Frames/Tables

Discussion in 'HTML & Website Design' started by dball, Jul 11, 2006.

  1. #1
    First, I'd like to thank you for taking your time to read this post and help me out. Anyways, here's the problem.

    http://dball.ca.tt

    is my site, and I just have a little problem with it. As you can see on the left side of the website, there is a panel with 'recent articles' on it. To be honest I got this template for free and customized it myself, so I am unsure how to do this part without messing the tables up.

    What I want to do is make the 'recent articles' table, or section, a frame, so I can update it on one page and it'll be the same for every other page a visitor clicks on. I have tried many things but the table seems to mess up every way I try it.

    I hope you all get what my problem is, and thanks for your response in advance.
     
    dball, Jul 11, 2006 IP
  2. GLD

    GLD Well-Known Member

    Messages:
    307
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    140
    #2
    This doesn't really answer your question, but to accomplish what you're looking to I'd advise using PHP and include();. ;)
     
    GLD, Jul 11, 2006 IP
  3. dball

    dball Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the response anyways.

    I am not familiar with PHP, which is why i just use HTML.

    However, do you know any relatively simple way I could accomplish what I need to do using PHP, which wouldn't mess up the layout of my site overall?

    Thanks!
     
    dball, Jul 11, 2006 IP
  4. GLD

    GLD Well-Known Member

    Messages:
    307
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    140
    #4
    It's relatively simple.

    Create a file named recentarticles.php and place whatever code you want in it.
    Ex:
    <a href="article1.php">Article1</a><br>
    <a href="article2.php">Article2</a><br>
    HTML:
    Then place the following code on all of your pages, or wherever you want the code in recentarticles.php to appear:

    <?php
    include ('recentarticles.php');
    ?>
    PHP:
     
    GLD, Jul 11, 2006 IP
  5. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #5
    if frames are what you want, use an IFrame and Force the width of it to fit in your column
     
    ccoonen, Jul 11, 2006 IP
  6. dball

    dball Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks, I don't know how to do it directly right now but will look into it on the internet.

    ----------------------------

    EDIT

    The php route did not work well for me so I went with iframes, and have goten the layout to work perfectly.

    However, whenever I click the link, the target is inside the iframe, so it opens the page up in the box, and the main page doesnt change, if you are unsure of what I mean please visit

    http://freepgs.com/ohhd/test.html

    and click one recent article #1.

    Normally, I would use the "name" tag for the iframe and make the link appear on another frame, but because I want it to completely refresh the document, and the target is not a frame, i am unsur eof how to use this tag.

    Does anyone know how I can target it so when I click the link inside the iframe then it will completely refresh the page? Thanks.
     
    dball, Jul 11, 2006 IP