Posted by David Dorward on 10/01/72 11:28
miphize wrote:
> Have created a webpage as a template with a stylesheet, however am trying
> to get the page to load content from content.txt file with little success.
> The reason i am trying to do this is so that i can update the content
> without bothering with the html or javasript code.
The key is to use software that will take your text and output HTML.
Something like Markdown (which is written in Perl and has been ported to
other languages including PHP).
This software could run on your workstation before you upload the pages
(preprocessing) or on the server each time that page is requested[1]
(server side programming).
> Currently have been wrestling with this for ages and read loads of books
> on html/dhtml and javascript, i must be missing something but just not
> able to find a solution.
HTML is a language for describing the structure and semantics of a document
along with its relationship to other resources.
DHTML is a buzzword that generally means HTML + CSS + JavaScript + DOM.
JavaScript is a programming language commonly embedded in HTML documents to
produce visual effects or provide convenience functions for the user (such
as warning them that data they are entering in a form doesn't meet certain
requirements).
None of them are a good solution for the problem you have described.
[1] Although there might be a server side cache to avoid rerunning the
script when it isn't needed.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Navigation:
[Reply to this message]
|