The MP3car.com Store The MP3car.com Blog    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General MP3Car Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 02-01-2005, 02:36 PM   #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---]
EBFoxbat is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 02-01-2005, 04:01 PM   #2
MySQL Error
 
MatrixPC's Avatar
 
Join Date: Sep 2003
Location: Beach City, Socal
Posts: 4,035
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

Last edited by MatrixPC; 02-01-2005 at 04:40 PM.
MatrixPC is offline   Reply With Quote
Old 02-02-2005, 01:31 PM   #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---]
EBFoxbat is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

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


All times are GMT -5. The time now is 12:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics