Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

How do i survive without frames?

Options
  • 05-07-2002 4:27am
    #1
    Registered Users Posts: 183 ✭✭


    ok, well basically what i want is to be able to insert external html code into another html file.
    For example, something like this if it was possible:
    <html><body>

    <htmlsource="links.html">
    <p>blahblah</p>

    </body></html>


    I've managed to do this, using javascript variables with html code as the variable. But this is messy.

    So... is it possible using html?
    ...and if not in html, any other way?


Comments

  • Registered Users Posts: 3,329 ✭✭✭radiospan


    It's possible with HTML, using Server Side Includes.

    I don't know whether or not your server will support this, but give it a go.

    Use it like this:
    <!--#include virtual="links.htm" -->
    
    For it to work, you'll either have to give your files a .shtml extension, or CHMOD to 755 in your FTP client.

    Hope this is of help.


  • Registered Users Posts: 183 ✭✭fester


    Thanks.

    That should saave me ripping my hair out :)


  • Closed Accounts Posts: 287 ✭✭donaloconnor


    I would go for PHP :) Have a php. Php easy to add :)


  • Registered Users Posts: 1,842 ✭✭✭phaxx


    Ahem.. I'll just expand on what donal said.

    If your server supports it, you can include a file with php like this:
    
    <html here>
    
    <?php include("navigation.html"); ?>
    
    <more html here>
    
    

    The file must be renamed to a .php for the server to parse it.


  • Closed Accounts Posts: 287 ✭✭donaloconnor


    Thanks :)


  • Advertisement
  • Registered Users Posts: 183 ✭✭fester


    Humm... thats good too.
    I wonder though, would you be able to include .php files this way?

    ...i.e. would this work?
    <?php include("navigation.php"); ?>
    


  • Registered Users Posts: 1,842 ✭✭✭phaxx


    Yup that works fine, any php code in the include()d file is also executed.


Advertisement