|
Posted by Jonathan N. Little on 05/20/06 16:33
colin.steadman@gmail.com wrote:
> Hi Steve,
>
> Thanks for taking the time to reply, your comments were very helpful!
>
> As you've probably guessed I'm not a professional web developer. I'm
> attempting to setup this site to help out a mate, and hopefully learn
> something. I have an understanding of how HTML works, but I lack
> knowledge and experience.
>
> I think I'm probably going to take your advice and ditch the javascript
> and replace it with proper links. The javascript thing was an
> experiment, and I think the idea was basically sound. I was attempting
> to use one page to display whatever content was requested. This should
> mean that all the pages are guaranteed to look the same as they would
> all be using the same layout. If I use discreet pages for each link,
> I'll have to change them all if I decide to make a change to any one of
> them. Thats more work isn't it?
What would be far superior then the iframe, javascript and all is if you
server supports PHP, and many do. Just do the page in PHP and have it
inset the text file with an include...
news.php:
<html>
<head><title>karate club news</title></head>
<body>
<h1>What's happening at the karate club</h1>
<pre>
<?php
include_once('news.txt');
?>
<p>Rest of page</p>
</body></html>
then all you buddy has to do is edit the 'news.txt', no iframes,
javascript, or html experience on you buddy's part need.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|