Click to See Complete Forum and Search --> : Question: Can I reference a table on all my pages?
epicdogs
01-23-2006, 11:10 AM
I have a table that hold all the links to all my pages. But, right now, I have that table repeated on every page (which makes updating it a pain!).
Can anyone tell me if it is possible to store the table in ONE PLACE and then "reference it" (pull it in) to every page? If this question doesn't make sense, please let me know.
I am a super novice HTML person (self taught) and I am using MS Frontpage.
Thank you for any assistance. You can see what I mean by looking at my navigation : www.epicdogs.com
Julie
Epic Dogs
ProWeb
01-23-2006, 11:27 AM
in a word No. Enjoy the typing.
You can do it with ASP using a <#include file="myLinksTable.html"> tag.
Though this can be a little diferent depending on how your hosts server is configured.
If you would like more info let me know....
epicdogs
01-23-2006, 11:37 AM
ProWeb,
How different is .ASP then HTML? Could I still use Frontpage to build it?
I have a webstore (from Candypress) that is in ASP so I have some experience meddling with that but I don't know how to start it from scratch. If there is someplace that you could direct me on this topic, I would appreciate it.
Thanks!
jeffjco
01-23-2006, 03:03 PM
An alternative to ASP is to use an external javascript file. In your external javascript, enclose each HTML line of your table with a document.write("...") statement. Then on each of your pages, replace the table definition with a script tag referencing the javascript file:
<script type="text/javascript" src="mymenu.js"></script>
poiuy
01-23-2006, 03:25 PM
If you're using Frontpage it is totally possible if you use the Shared Borders feature.
It's the links on the left side of the page right? Just add them to the left border and apply that to the pages you want. Then when you make a change to one it will apply the change(s) to all the pages with that border. Works on the top, left, right and bottom for any page(s) you select.
Sounds to me that might be what you're looking for - Shared Borders.
the tree
01-23-2006, 04:44 PM
First up stop pissing about with front page, use a real HTML editor like HTML-Kit (http://chami.com). Make sure you're using tables for tabular data (i.e. what you'd see in a spreadsheet) and not using tables for layout (see below).
Now back to the essence of your question, you can use some javascript to include a file in another but you would be better off using a process that runs on your server (Server Side Scripting). Which one you use (PHP, ASP, ASP.net, CGI-Perl, JSP, ColdFusion) depends on what your host supports.
What's wrong with tables for layout?
Why tables for layout is stupid (http://hotdesign.com/seybold/) Why avoiding tables (for layout) is important (http://davespicks.com/essays/notables.html) Tables or CSS: choosing a layout (http://evolt.org/article/Tables_or_CSS_Choosing_a_layout/25/21429/) Why go table free? (http://www.workingwith.me.uk/tablefree/why/) Tables vs. CSS: A fight to the death (http://www.sitepoint.com/article/tables-vs-css/) Why Tables Are Bad (For Layout) Compared to Semantic HTML + CSS (http://www.phrogz.net/CSS/WhyTablesAreBadForLayout.html) The layout is dead, long live the layout (http://www.westciv.com/style_master/house/good_oil/dead_layout/) How do you use CSS for layout then?
Practical CSS tips and tricks (http://alistapart.com/stories/practicalcss/) w3schools on CSS (http://w3schools.com/css/default.asp) CSS layouts by Glish (http://glish.com/css/) The Layout Reservoir (http://www.bluerobot.com/web/layouts/)
epicdogs
01-23-2006, 09:02 PM
First, thanks for all the suggestions (and I am sure there is a classier way to do everything I am doing but for a true novice, it is better to start small).
I have created an iframe in my pages that references my navigation in a table (no arguments about tables, please). I am very close to my solution so I will start a new thread to ask for help on the one outstanding issue with iframes.
Thank you all for your replies!
Julie
Epic Dogs