09-18-2003, 06:00 PM
I'm doing a site for a client who needs to update a very small amount of text (and a link) on a regular basis.
Anyone got any ideas? I can't use Perl or ASP or CFM or anything like that - it's HTML and JS only.
09-18-2003, 06:34 PM
server side includes possible? that would do it, sorta like a .h file in C but for html...
09-18-2003, 06:55 PM
I just tried this and it worked with IE. YMMV I created two separate .js files, included them both into the HTML like thus:
var test1 = "This is a test";
document.write("Value: " + test1);
And the HTML includes them both:
This, in IE reported:
Value: This is a test
Therefore you could have a very simple JS file that your guy CAN edit:
var strURL = "http://www.fatchicksinpartyhats.com";
var strText = "I love fat chicks in party hats!";
That should be an easy enough file for him to play with, yes?
09-18-2003, 08:58 PM
Go the SSI route. It's the better option. It's professional. It's the correct way to go.
09-18-2003, 09:39 PM
What technology are you using? Server side is definitely the way you want to go. If you're using something that supports ASP or JSP, you could make a simple file that is parsed and loaded into application variables. Then just include them on each page.
09-19-2003, 03:08 AM
Don't care about the JS being off - that's not my problem. Anyway, it's for a travel agency, so the site isn't going to
Big Ole Steve has what I'm going to do - it came to me too as I was brushing my teeth last night.
Thanks for everyone's advice!
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.