Hello. I would like to know if this script (or another very much like it) exists. When I add a new catergory of scripts to my website I have to go back through each of my pages (50+) and add the new catergory manually. This takes a long time and now, especially as I am going to be writing articles often, I really need a script like this:
I need a script which I can log into but which no one else can .
It needs to have an admin type interface.
It needs to have this ability: I specify what the link is called, (eg JavaScript: easy?), I then specify what the new link is that i want to replace the old one (eg, JavaScript: Easy part 2). The script would then go through all of my pages changing the link JaavScript: Easy? with javaScript: Easy? Part 2.
I have probably lost you but if there is anyyoone that understands and knows of a script then PLEASE tell me.
Thanks
------------------
Thomas Minton
http://www.javaplace.co.uk






Rob Pengelly posted this at 16:48—16th January 2000.
They have: 850 posts
Joined: Jul 1999
Why not use Server Side Includes (SSI) if your host supports it?
You could have your menubar in a .txt, and than wherever your menubar is suppose to go in each page, just put the following:
<!--#include file="menubar.txt"-->
------------------
1 in 5,000 north atlantic lobsters are born bright blue.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
minton posted this at 18:42—16th January 2000.
They have: 314 posts
Joined: Nov 1999
Thats actually not a bad idea and alot better then using a cgi script. Now i will find out if my "host" supports SSI. Considering it doesnt let me use a cgi-bin, have wild cards or use subdomains I doubt it will suppoet SSI but anyway.
Thanks alot
------------------
Thomas Minton
http://www.javaplace.co.uk
Thomas
The JavaScript Place
The JavaScript Place Forums
sawz posted this at 01:58—29th January 2000.
They have: 10 posts
Joined: Jan 2000
if your unable to use ssi, try serving it up java style.
do a :
document.write("place your html here")
don't use quotes in the html, for instance:
document.write("<a href='http://www.yourdomain.com'>your domain</a>")
call it your_domain.js
serve it up this way:
<script language="JavaScript1.2" src="your_domain.js"></script>
anti posted this at 09:14—31st January 2000.
They have: 453 posts
Joined: Jan 1999
Hi,
I had a similar problem.
My solution:
Create all page (locally) via wml, perl and a db (mysql), then upload them via sitecopy.
The advantages:
- Easy maintainance via DB
- A few templates for lots of pages
- only static pages are served (server load !!)
Disadvantages:
- You have to convert your pages
- You have to setup the DB
- You have to write some (very small) scrits
If you update your links a few times this one time overhead really pays.
ciao
Anti
get your free webmail account at:
http://freemail.webhome.de/
Edge posted this at 06:06—12th March 2000.
They have: 117 posts
Joined: Mar 2000
I think http://www.cgi.veinotte.com/scripts.htm has JUST what you're looking for. Get their Web File Editor!! It's a great program for this exact problem.
sawz, the problem with JavaScript is that your browser caches it so visitors don't see the updates.
--Edge
Matt Kaufman posted this at 11:50—12th March 2000.
They have: 324 posts
Joined: Dec 1999
There is no problem with his Javascript if you put this in the <head> tag: <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
If your host doesn't support SSI, there are some CGI Scripts(http://www.cgi-resources.com) that are for hosts that don't support SSI, but you can make it include a file, however that is slower too. 
WebDevHQ.com - The Web Developer Headquarters. HUNDREDS of articles, reviews, tools and more!
Edge posted this at 00:51—13th March 2000.
They have: 117 posts
Joined: Mar 2000
Yes, I tried that. My browser still caches it. Anyways, if you combine CGI and JavaScript, there's a way to make it so that it doesn't cache the script no matter what.
--Edge
Orpheus posted this at 02:59—13th March 2000.
They have: 568 posts
Joined: Nov 1999
umm if i remember my HTML there is something you can put in the headers that will cuase the document to not cache.
content="no cache" or something...
anyone have the right answer?