Results 1 to 3 of 3

Thread: Need Java Script help

  1. #1
    Maximum Bitrate EBFoxbat's Avatar
    Join Date
    Jun 2004
    Location
    Massachusetts
    Posts
    837

    Need Java Script help

    I need a script for my website to write the day a file was last updated. There are a ton of simple scripts on google but I have a problem.

    Where I want it to say "Last updated ##/##/##" is a different page then the one I want updated.

    Basically I want to put a "last updated..." on my homepage that refers to my blog which is a diffent page. Any ideas? I really don't want to update the homepage by hand.
    ,./(0)3

    '04 Canyon 4x4 pickup

    [---PC on hold----working on external fiberglass "tool" box---]

  2. #2
    MySQL Error MatrixPC's Avatar
    Join Date
    Sep 2003
    Location
    Beach City, Socal
    Posts
    4,053
    What webserver are you running?
    Basically you can just use SSI = Server Side Include
    Appache usually have this enable by default.
    MS IIS usually have this disable. I just forgot how to set that up, but if you search MS site for SSI, it will give you instruction on how to setup SSI.

    More info can be found here or your friendly search engine
    http://tech.irt.org/articles/js166/#ssi_flastmod

    [edit]
    Well, if SSI is not an option maybe this (from NS JS Reference 1.3)
    Code:
    lastmod = document.lastModified // get string of last modified date
    lastmoddate = Date.parse(lastmod)// convert modified string to date
    if(lastmoddate == 0){// unknown date (or January 1, 1970 GMT)
    document.writeln("Lastmodified: Unknown")
    } else {
    document.writeln("LastModified: " + lastmod)
    }
    2004 Matrix XR A7N8X-VM/400 AMD XP-M 2500+, DS-ATX
    89 Supra Turbo P3 600E@750/Abit BE6 II, Alpine M-BUS Car2PC.
    Y2K Accord Dell GX150
    RoadRunner is the best FE PERIOD
    EmoRebellion is a SCAMMER

  3. #3
    Maximum Bitrate EBFoxbat's Avatar
    Join Date
    Jun 2004
    Location
    Massachusetts
    Posts
    837
    Bot how do I reference a different file than the one I'm writting to?
    ,./(0)3

    '04 Canyon 4x4 pickup

    [---PC on hold----working on external fiberglass "tool" box---]

Similar Threads

  1. Java based #mp3car irc??
    By Tidder in forum Mp3car Forum Suggestions/Comments
    Replies: 5
    Last Post: 02-02-2005, 06:56 PM
  2. [PREVIEW] NCS (neocar script) reference
    By netsuo in forum NeoCar Media Center
    Replies: 6
    Last Post: 12-14-2004, 11:37 AM
  3. Can Someone help me with NSIS Script?
    By more mods in forum Software & Software Development
    Replies: 0
    Last Post: 08-18-2004, 08:15 AM
  4. *SIGH* Script Kiddies...
    By frodobaggins in forum Off Topic
    Replies: 19
    Last Post: 04-02-2004, 03:38 AM
  5. Looking For ASP / Java Script / HTML File Upload Prog
    By ccsnet in forum General MP3Car Discussion
    Replies: 14
    Last Post: 12-27-2003, 09:13 PM

Bookmarks

Posting Permissions

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