...

View Full Version : Changing links sitewide (but not with a server)



grubesteak
02-04-2005, 05:53 PM
OK, can anyone tell me the best way to change links sitewide without using any server-side technology. I have that ability with PHP, but the sites I'm developing will be installed on individual computers without access to a server (for security reasons).

Is this possible? Can anyone help? Thanks

- Grubesteak

Basscyst
02-04-2005, 06:44 PM
You can do it in IE with some Javascript and ActiveX, but it will take some good string handling know how.

Basscyst

Basscyst
02-04-2005, 08:04 PM
Here is something I whipped up:

http://www.codingforums.com/showthread.php?t=51670

Basscyst

grubesteak
02-05-2005, 05:02 AM
But,what I meant was, if I wanted to add links in a navbar, do I need to user server-side technology, or is there something else I can use for sitewide changes like that on the client side.

chilipie
02-05-2005, 10:58 AM
Are you wanting to do something like a SSI?

grubesteak
02-05-2005, 02:55 PM
I don't think so since it can't be server-side based.

Basscyst
02-05-2005, 04:25 PM
Are you asking if there is a way to update everyone's copy of the pages on their local machine, at one time?

Basscyst

chilipie
02-05-2005, 05:25 PM
I don't think so since it can't be server-side based.
The emphasis was on the "like"... So, do you want to something similar to a SSI?

grubesteak
02-05-2005, 08:02 PM
Let me explain this better.

I am developing this web site that, when finished, will be put on a network and outside agencies will download the HTML files onto their local computers. The site is being developed for police departments in a large metro area.

However, the site will need to be developed so that the police departments can download the whole site, put it on computers in police cars, and then have the information available to each officer. But, the site cannot be a "live" site because of sensitive security issues.

Of course, the bigger this site gets, the harder it is to maintain without server-side technology. Of course, if I could use PHP or something to update the links sitewide, that would be great. But since the site will be downloaded to a bunch of different computers and ran locally, this won't work (since PHP files don't run without a server and I am not allowed to install a server and/or PHP or something similar on each computer).

So, this is my delimna. Any suggestions?

Graft-Creative
02-05-2005, 10:45 PM
If you have access to Dreamweaver, then you could use .dwt files - dreamweaver templates - as far as i can remember, this would allow you to update certain sections of your site - say, adding extra links to your nav - sitewide, accross your design, without any serverside jiggery pokery.

It would just be a case of editing the master template, then uploading/installing it.

Gary

rmedek
02-05-2005, 11:26 PM
I am developing this web site that, when finished, will be put on a network and outside agencies will download the HTML files onto their local computers. . .

. . . But since the site will be downloaded to a bunch of different computers and ran locally, this won't work (since PHP files don't run without a server and I am not allowed to install a server and/or PHP or something similar on each computer).

Man, I'm not trying to be obtuse, but this is confusing me :D

To avoid the server-side approach, you could use a javascript include (http://tips.angel.msu.edu/javascript/index.php?page_num=3)... the same process only it happens via the client-side. It'd be somewhat of a pain, but you could still keep all your menu sections, nav sections, etc. together in one file.

The thing I don't understand is, if every computer running the site is local (no attachment to the internet), then with every change to the site wouldn't you have to upload the new source code to each and every computer? If that's the case, it doesn't seem like an include is going to make much of a difference; either you upload the included files to every computer or you upload the static html.

Although, on second thought, I guess it does make sense to upload ONE file to every computer rather than a hundred...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum