View Full Version : Could this be done in JAVA?
07-07-2002, 10:28 AM
I have an event creator written in ASP which saves the current event as a HTML file...
What needs to be done is to check the current events file to see if its older than 3 hours, if its is then it'll show no events or no_events.html, else show the current event etc.
07-08-2002, 05:40 AM
Why would you want to do it in JS when it can be easily accomplished server side in ASP, that you are using:confused: :confused: :confused:
07-08-2002, 11:56 AM
You know when you get to that stage when you just can't get your head around a peice of code and start pulling your hair out to look for alternatives...
Well i've sorted it now, thanks for the reply, after the 60th view!!!!!!! lol
Heres what i came up with:
Dim MyFileObject, MyFile, MyFileTrue, TimeOut, RealTime
RealTime = hour(now)
TimeOut = hour(MyFile.DateLastModified) + 3 ' Put timeout at 3 ours ahead of the creation date
If RealTime < TimeOut AND day(now) = day(MyFile.DateLastModified)Then
Set MyFileObject = nothing
Set MyFile = nothing
set RealTime = nothing
set TimeOut = nothing
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.