You are here: Re: Pulling a small text file into HTML? Easy? Bah! « HTML « IT news, forums, messages
Re: Pulling a small text file into HTML? Easy? Bah!

Posted by Mitja Trampus on 11/17/05 23:27

Steve wrote:
> Cheers for the help guys - but let me now make it a bit more tricky;
> firstly, as I said I can't use PHP, ASP, etc as I am using a cheap ass
> server! Secondly, it has to be pulling in a simple file as the person
> assigned to editing it has no HTML knowledge!
>
> S.

If server side processing is not an option, you are stuck
with either
a) preprocessing at "home"
b) client-side processing
c) teaching the other guy a wee bit of HTML

I strongly recommend against (b) because either javascript
or xml/xslt are not supported widely enough (search engines,
users with disabled JS, older browsers, ...).

(a) is fine but that means that whoever is going to edit the
plain-text file must have a scripting language or an capable
preprocessor available on the local computer, make changes
to the plain-text file, run the script/preprocessor and
upload the files via FTP or web interface.
Now if he's gonna learn all that, you might just as well
skip all the fuss with preprocessors and show him what to
change in a series of blocks like
<tr><td class="gigPlace">
At me momma's house
</td><td class="gigTime">
Tuesday 9pm
</td></tr>
He doesn't need to know what all that stuff is, just to
recognize it as a delimiter. This is not hard to learn at
all. And if you enter the first few he'll always have
examples at hand.

All in all, I'm sure (c) is the simplest. Preprocessing is a
viable option, especially if you have more than just two,
three pages and can make use of a preprocessor in several
ways, not just for listing the gigs.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация