...

View Full Version : Javascript time/date stamp



WRATHofGOD18
07-17-2003, 03:01 PM
I am having some problems putting the getDate() function in a static variable so that the time/date will not refresh every time the page is loaded.

What I am trying to do is to put a date/time stamp for every news post I have on my site, obviously I don't want them to change every time someone loads the page.

any ideas?

Thanks

arnyinc
07-17-2003, 03:40 PM
getDate() will look up the current date and time. Are you using some sort of serverside language like PHP, ASP, or perl for your news posting? Create the date with one of those, the database, or even with javascript, then submit it along with your news posting. Dynamically generating it every time someone comes to the page won't work.

WRATHofGOD18
07-17-2003, 07:10 PM
No, I am not using any SS program to post news...I guess I need to.

[off to learn CGI, PHP]



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum