Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: linking

  1. #1
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    linking

    Hi everyone
    can you help please,
    I have a 3 column layout with links in the left column anI want to click a link and have the result appear in the contents column (the middle) with the left and right columns staying as they were, can any one advise please
    Peter R

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello peter R,
    One solution could just be letting cache be your friend. Once your basic layout is loaded on the end user's machine, loading the next page with different content in the middle column can be very fast.

    Have a look at this demo - http://nopeople.com/CSS/fast/index.html
    You can see the layout is the same on all 3 pages, the only thing that changes is the content.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I know one way to do so, and that is to create a centralized .PHP page as the columned layout and insert a code like

    PHP Code:
    <ilayer name="nscontainer" width=495>
    <layer name="nscontent" width=495 visibility=hidden>

    <!—Content goes here-->

    <?php
    $page 
    $_GET['page'];  
     include (
    "$page"); 
    ?>


    <!—Stop content here-->

    </layer>
    </ilayer>
    Granted this is relatively old coding with the iframe, and you can likely make it a Div if you chose. But this is the code that has worked for me and I think it might work for you. Just make sure your content is a separate page (the stuff in the middle).

    Simply imput that code in your middle column and adjust the Iframe/Div to your layout. And make your links be as follows:

    Code:
    <a href="insert name of main page.php?page=name of contentpage.html">Link?</a>

    Hope this helps! =D Helped me!
    Last edited by wushudragon84; 01-01-2010 at 09:06 PM. Reason: missed a piece of code XD


  •  

    Posting Permissions

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