"Andy" <an**@not.telli ng.you> wrote in message
news:AM******** ******@i.am.not .telling.you...
Can someone please help me with this problem? I don't know if this is
possible in Java, so if it's not please point me in the right direction
or to the right newsgroup! (I'm a newby to Java scripting).
On a web page I have a webcam type image that updates every minute. I
wish to conditionally replace this image with an apology image in the
event that my upload fails for more than an hour. I guess what I want is
some script that will check the image file timestamp (last modified
time), and if it's more than an hour old replace it with the apology
image. I've scoured the web for ideas but so far found nothing. Can
anyone write the script for me? I'd be very grateful!
Just a tip (since you say you're a newbie...):
You use the word "Java" and "Java scripting" (two words).
You *are* aware of the fact that Java and JavaScript is two
completely different languages that have nothing to do with
each other?
Java is a fullblown OO programming language developed by Sun,
and JavaScript originated at Netscape, and is now an (extended)
implementation of ECMAScript.
Just thought I mention it, as it can severely mislead your
searches for information...
As to your question, That would best be done on the server,
and not in script in the clients browser.
--
Dag
58°26'15.9" N 008°46'45.5" E