www.webdeveloper.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 23

Thread: Opening a page within a table?

  1. #1
    Join Date
    Mar 2003
    Posts
    14

    Opening a page within a table?

    Hi there, I have a webpage that's divided into three "sections."
    There are a set of tables on the left, the middle, and on the right. Now, the table in the middle, I need to be able to put my news updated inside.

    Is there a way for me to open an HTML page inside of the middle without it messing up either of the three tables?

    Sorry if I'm unclear. Here's a breakdown. This is a game site. Menus on the left and right and in the middle is the news section. I use a program called Coranto to update the news and need Coranto's output page displayed in the middle. I can't seem to code it right and I need some help.

  2. #2
    Join Date
    Nov 2002
    Posts
    984
    Use an <iframe>

    and btw, don't abuse <table> for general site layout, use CSS which was designed to do layout.
    // Stefan Huszics

  3. #3
    Join Date
    Mar 2003
    Posts
    14
    Thanks.

    Well the thing is about an iframe is that I don't want the news to be inside of a scrollable box, I want it to expand down the main page. Similar to that of http://acvault.com (the news setup only)

  4. #4
    Join Date
    Mar 2003
    Posts
    14

  5. #5
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Not sure I'm totally clear on what you need, but it sounds like you need some server side programming to include your page...

    If your server supporst php, you can do it like this:

    rename to .php
    PHP Code:
    <?PHP
    include("yourfile.php");
    ?>
    or Server Side Includes:

    rename to .shtml
    Code:
    <!--#include file="yourfile.htm"-->

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  6. #6
    Join Date
    Mar 2003
    Posts
    14
    Yeah, that'll work. Thanks. =)

  7. #7
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    If PHP is an option, I'd recommend that method first, because you will be able to add far more to your site with PHP. PHP is far more powerful than SSI, so you'd be best of useing that...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  8. #8
    Join Date
    Mar 2003
    Posts
    14
    Hmm, well I'm probably the most inept webmaster you've ever met, I can't seem to get it in right. =( hehe (with SSI)

    Can't do PHP until the admin gets back from vacation.

  9. #9
    Join Date
    Mar 2003
    Posts
    14
    Here's the area it needs to be in:

    <TD background="images/back.gif"><font face=verdana size=2 color=#C2BB8E><b>town crier:</b></font></TD>
    <TD BGCOLOR=#063017>&nbsp;</TD>
    <TD BGCOLOR=#063017>&nbsp;</TD>
    <TD BGCOLOR=#063017>&nbsp;</TD>


    </TR>
    </TABLE>
    </td>
    </tr>
    </table>
    <TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=4 CELLSPACING=2>
    <TR>



    <!-- put newspro above this -->
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    http://xlt97.20megsfree.com/apic.gif
    (Copy and paste)
    Last edited by Iconoclast; 03-01-2003 at 03:44 PM.

  10. #10
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Make sure your name your file with a .shtml ending, then try:

    Code:
    <TD background="images/back.gif"><font face=verdana size=2 color=#C2BB8E><b>town crier:</b></font></TD> 
    <TD BGCOLOR=#063017> </TD> 
    <TD BGCOLOR=#063017> </TD> 
    <TD BGCOLOR=#063017> </TD> 
    
    
    </TR> 
    </TABLE> 
    </td> 
    </tr> 
    </table> 
    <TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=4 CELLSPACING=2> 
    <TR> 
    
    <!--#include file="yourfile.htm"-->
    
    <!-- put newspro above this --> 
    </TD> 
    </TR> 
    </TABLE> 
    </TD> 
    </TR> 
    </TABLE> 
    </TD> 
    </TR> 
    </TABLE>
    Also, remember that yourfile.htm does _not_ include elements such as <html> etc, as the contents of the file will just be added to your .shtml file.

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  11. #11
    Join Date
    Mar 2003
    Posts
    14
    I had <!--#include file="http://myaddress.com/cgi-bin/news/news.txt"--> and had changed it (the main page) to .shtml then when I refreshed, it remained the same. The problem is most likely just because of my ignorance. =P

  12. #12
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Does your server support SSI? It possibly does not... Try the PHP method.

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  13. #13
    Join Date
    Mar 2003
    Posts
    14
    I owe you guys my first-born child! Thanks so much!

  14. #14
    Join Date
    Mar 2003
    Posts
    14
    Too good to be true. =( Now I have another problem for you two wise-men to solve:

    <TD background="images/back.gif"><font face=verdana size=2 color=#C2BB8E><b>town crier:</b></font></TD>
    <TD BGCOLOR=#063017> </TD>
    <TD BGCOLOR=#063017> </TD>
    <TD BGCOLOR=#063017> </TD>


    </TR>

    <?PHP
    include("http://xxx.net/cgi-bin/news/news.txt");
    ?>

    </TABLE>
    </td>
    </tr>
    </table>
    <TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=4 CELLSPACING=2>
    <TR>



    <!-- put newspro above this -->
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    With where I put that, it totally unaligned the tables on the right, now they're higher than they should be. What should I do?

    Hehehe, I feel like a kid again.

  15. #15
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Originally posted by Iconoclast
    What should I do?
    Post a link so we can see the problem...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles