Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Location
    Lawrence, Kansas
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh Changing links sitewide (but not with a server)

    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

  • #2
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    You can do it in IE with some Javascript and ActiveX, but it will take some good string handling know how.

    Basscyst
    Helping to build a bigger box. - Adam Matthews

  • #3
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Here is something I whipped up:

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

    Basscyst
    Helping to build a bigger box. - Adam Matthews

  • #4
    Regular Coder
    Join Date
    Feb 2005
    Location
    Lawrence, Kansas
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thanks

    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.

  • #5
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you wanting to do something like a SSI?

  • #6
    Regular Coder
    Join Date
    Feb 2005
    Location
    Lawrence, Kansas
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't think so since it can't be server-side based.

  • #7
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Are you asking if there is a way to update everyone's copy of the pages on their local machine, at one time?

    Basscyst
    Helping to build a bigger box. - Adam Matthews

  • #8
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by grubesteak
    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?

  • #9
    Regular Coder
    Join Date
    Feb 2005
    Location
    Lawrence, Kansas
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #10
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #11
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Quote Originally Posted by grubesteak
    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

    To avoid the server-side approach, you could use a javascript include... 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.

    Edit: Although, on second thought, I guess it does make sense to upload ONE file to every computer rather than a hundred...
    Last edited by rmedek; 02-06-2005 at 12:31 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •