Opening a page within a table?

admin

Administrator
Staff member
Hi there, I have a webpage that's divided into three "sections."<br />
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.<br />
<br />
Is there a way for me to open an HTML page inside of the middle without it messing up either of the three tables? <br />
<br />
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.<!--content-->Use an <iframe><br />
<br />
and btw, don't abuse <table> for general site layout, use CSS which was designed to do layout.<!--content-->Thanks.<br />
<br />
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 <!-- m --><a class="postlink" href="http://acvault.com">http://acvault.com</a><!-- m --> (the news setup only)<!--content-->http://iconoclast.0ldsk00l.net/images/apic.gif<!--content-->Not sure I'm totally clear on what you need, but it sounds like you need some server side programming to include your page...<br />
<br />
If your server supporst php, you can do it like this:<br />
<br />
rename to .php<br />
<?PHP<br />
include("yourfile.php");<br />
?><br />
<br />
or Server Side Includes:<br />
<br />
rename to .shtml<br />
<!--#include file="yourfile.htm"--><!--content-->Yeah, that'll work. Thanks. =)<!--content-->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...<!--content-->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)<br />
<br />
Can't do PHP until the admin gets back from vacation.<!--content-->Here's the area it needs to be in:<br />
<br />
<br />
<TD background="images/back.gif"><font face=verdana size=2 color=#C2BB8E><b>town crier:</b></font></TD><br />
<TD BGCOLOR=#063017>&nbsp;</TD><br />
<TD BGCOLOR=#063017>&nbsp;</TD><br />
<TD BGCOLOR=#063017>&nbsp;</TD><br />
<br />
<br />
</TR><br />
</TABLE><br />
</td><br />
</tr><br />
</table><br />
<TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=4 CELLSPACING=2><br />
<TR><br />
<br />
<br />
<br />
<!-- put newspro above this --><br />
</TD><br />
</TR><br />
</TABLE><br />
</TD><br />
</TR><br />
</TABLE><br />
</TD><br />
</TR><br />
</TABLE><br />
<br />
<br />
<!-- m --><a class="postlink" href="http://xlt97.20megsfree.com/apic.gif">http://xlt97.20megsfree.com/apic.gif</a><!-- m --> <br />
(Copy and paste)<!--content-->Make sure your name your file with a .shtml ending, then try:<br />
<br />
<TD background="images/back.gif"><font face=verdana size=2 color=#C2BB8E><b>town crier:</b></font></TD> <br />
<TD BGCOLOR=#063017> </TD> <br />
<TD BGCOLOR=#063017> </TD> <br />
<TD BGCOLOR=#063017> </TD> <br />
<br />
<br />
</TR> <br />
</TABLE> <br />
</td> <br />
</tr> <br />
</table> <br />
<TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=4 CELLSPACING=2> <br />
<TR> <br />
<br />
<!--#include file="yourfile.htm"--><br />
<br />
<!-- put newspro above this --> <br />
</TD> <br />
</TR> <br />
</TABLE> <br />
</TD> <br />
</TR> <br />
</TABLE> <br />
</TD> <br />
</TR> <br />
</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.<!--content-->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<!--content-->Does your server support SSI? It possibly does not... Try the PHP method.<!--content-->I owe you guys my first-born child! Thanks so much!<!--content-->Too good to be true. =( Now I have another problem for you two wise-men to solve:<br />
<br />
<br />
<TD background="images/back.gif"><font face=verdana size=2 color=#C2BB8E><b>town crier:</b></font></TD> <br />
<TD BGCOLOR=#063017> </TD> <br />
<TD BGCOLOR=#063017> </TD> <br />
<TD BGCOLOR=#063017> </TD> <br />
<br />
<br />
</TR> <br />
<br />
<?PHP<br />
include("http://xxx.net/cgi-bin/news/news.txt");<br />
?><br />
<br />
</TABLE> <br />
</td> <br />
</tr> <br />
</table> <br />
<TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=4 CELLSPACING=2> <br />
<TR> <br />
<br />
<br />
<br />
<!-- put newspro above this --> <br />
</TD> <br />
</TR> <br />
</TABLE> <br />
</TD> <br />
</TR> <br />
</TABLE> <br />
</TD> <br />
</TR> <br />
</TABLE><br />
<br />
<br />
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?<br />
<br />
Hehehe, I feel like a kid again.<!--content-->Originally posted by Iconoclast <br />
What should I do?Post a link so we can see the problem... ;)<!--content-->The Battered Anvil (<!-- m --><a class="postlink" href="http://iconoclast.0ldsk00l.net/index2.php">http://iconoclast.0ldsk00l.net/index2.php</a><!-- m -->)<!--content-->Well, it looks ok to me in IE6...what is it supposed to look like? A screen shot, or something would be nice, if possible...<!--content-->http://xlt97.20megsfree.com/apic.gif<br />
<br />
Copy and paste that. The server doesn't like remote linking.<br />
<br />
Ignore the big white box in the middle.<!--content-->If you have that working somewhere besides a .gif (ie. an actuall HTML page) then all you should need to do is remove the main content cell, and insert that code into the news.txt file.<!--content-->Other than that photoshopped white-box in the middle, that's what the page looked like before I put in the PHP, since I've put in the PHP, it's unaligned the tables on the site and I'm not sure how to fix it.<br />
<br />
Sorry if I was unclear before.<!--content-->The PHP shouldn't be changing your site at all. You probably added your include in the wrong spot, or something, because if you simple took the main content cell, put it in news.txt and added a php include file, when you viewed source after the server parsed it, it would look exactly the same.<!--content-->I meant the PHP tag itself and I was trying to figure out where to place it. :D<!--content-->Problem is fixed guys. Thanks a lot! I hope my stupidity didn't rub off on ya! :D<!--content-->
 
Back
Top