Click to See Complete Forum and Search --> : tables


mathbates
02-06-2003, 03:11 AM
I was wondering if there is a way, preferably an easy one, to create a link to a table that would be universal throughout the entire site. I'm thinking something like how you can create a style sheet and link to it. My problem that I want to avoid is, say I add another link to my site, and it would appear in a table that would be on every page. Instead of going through every page and adding it, it would be much easier to just fix it in one place and it changes throughout. I don't know of any HTML that does that, but I could be wrong. Thanks.

meow
02-06-2003, 03:36 AM
Depends on how you are hosted. It's easily done with SSI (Server Side Includes). You save your table to a text file and then insert a special 'tag' wherever you want it to appear. The server will include the content of the text file before serving the page to the browser. PHP can do it too.

Check if you have either of those available. You can't do it with HTML and don't let anyone trick you into using JavaScript for this. ;)

http://www.bignosebird.com/sdocs/include.shtml

Stefan
02-06-2003, 05:15 AM
Originally posted by meow
You can't do it with HTML and don't let anyone trick you into using JavaScript for this. ;)


What about

<iframe>
or
<object type="text/html">

The second one is even valid 4.01 STRICT (however browsersupport for it appalingly bad :( )

meow
02-06-2003, 05:20 AM
Hush! :D

mathbates
02-06-2003, 08:44 AM
I thought of iframes about an hour after I posted the question. I think I might go with that because I already know how to do frames.