PDA

View Full Version : Urgent Help Required!



djweiser
03-06-2004, 02:45 PM
Hi, if you have a basic html page? Then you make a table on it.... i want 1 section to be part of a different html page, so i can easily update this section by just changing that external page.

How?

HeavyMetalParkingLot
03-06-2004, 03:41 PM
http://www.google.com/images/logo.gif

DWk
03-06-2004, 03:53 PM
Use FRAMES. Each frame in the page points to another page, which is displayed accordingly. That way, you can have a frame that you update (just newsframe.html) instead of your index.html

Look for tutorials on this.

Cygnuz-Y
03-06-2004, 04:06 PM
Do not use frames

Framesets structures have been used for long. They provided a convenient way to spare bandwidth in the early times of the Internet. They were also practical for dynamic languages as PHP (Learn it, Use it, Love it ;-).

They should not be used any more for they are :

Outdated : CSS provide features to structure a page in the same way. Just set the selector "overflow:scroll" on a positionned <DIV> tag. Five years ago, I would have coded this site with three frames, but it was five years ago.

Nearly deprecated.
As disabled people can&#39;t access to a framed structure as a whole, but frame after frame, the W3C, through the WAI stated that frame should be avoided. However, if you really need to use frames, please limitate them to three. Above, a disabled person just can&#39;t recall the relationships between frames.

Unreadable by the robots of the search engines. You will have to create a fake, unreadable to humans <NOFRAME> to have your framed pages indexed.

DWk
03-06-2004, 04:14 PM
Originally posted by djweiser@6 March 2004 - 07:45
basic html page?
;)

He&#39;s obviously learning HTML (not even learning, just fiddling), since frames are somewhat basic in HTML.

He can&#39;t go straight up to CSS if he doesn&#39;t have the basics. It&#39;s like trying to write a program in Java without knowing about its structure or classes.

By the way, post the source next time ;)

Cygnuz-Y
03-06-2004, 04:23 PM
He has to know all the pros and cons so he can make the right decision, sorry about the Source:

HERE IT ITS&#33; (http://www.html4.com/mime/markup/php/standards_en/html_misuses_en/html_misuses_21.php) :lol:

Hope it helps&#33;

h1
03-06-2004, 05:35 PM
:lol: None of you are answering his question. :P

In SSI, do this...

&#60;&#33;--#include virtual=&#34;table_to_include.html&#34;--&#62;
...and in PHP, do this...

&#60;?php include&#40;&#39;table_to_include.html&#39;&#41;; ?&#62;
That&#39;s all there is to it&#33;