If I have one page, such as index.shtml, and there are links on that page like news, work, and archives. Is it possible to make those links load dynamic text? I have been using <!--#include virtual="news.txt" -->, which imports the news.txt file into my page, but I would like it to replace news.txt with work.txt when you click the apropriate link. Also, should I not be using .shtml, I don't know anything about .xhtml.
Do I have to use iFrames to get what I am looking for though? Thats what I was previously doing, but I don't like the different pages loading in an iFrame.
How would I go about loading different .txt files when you click on a link. Such as load shows.txt and have it replace news.txt when you click on shows?
I did it, not exactly what I wanted. Instead of loading the text and using a php replace string I just had all the text already imported and the divs hidden. This way it wouldn't take as much script or as long to load. So the whole site is on one page, after seeing it completed Im not sure if I will use it or not but I accomplished what I wanted so thanks for the help.
As an alternative to preloading all the page content. You can use AJAX. Basically, you would have the links make the javascript calls to a php script that grabs the text from your data files. Then, you just dump the code into the DIV.