httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brent Baisley <br...@landover.com>
Subject Re: JavaScript question
Date Wed, 10 Jul 2002 17:59:48 GMT
I looked up the lastModified command in an old Javascript book (version 1.2)
I have, and here is what it says:
"This value is supplied by some, but not all, web servers."

The browsers may just be supplying arbitrary date values.?

> On Thu, 2002-07-04 at 13:46, Glen Lee Edwards wrote:
>> A client of mine is using the following JavaScript code to post to the
>> web page the last time the page was updated.  On IE it's showing the
>> current date, even though the page was last updated a month earlier.
>> On Konqueror var m is null, and on Mozilla, "January 1," (no year).
>> 
>> Apache-2.0.39 on a Debian Linux AMD K-7 server.  I'm assuming that the
>> problem is the interaction between the web browser and Apache
>> (document.lastModified doesn't exist?).
>> 
>>           <SCRIPT LANGUAGE "JavaScript">
>> 
>>                    <!-- Begin
>> 
>>                    var m  "Page updated " + document.lastModified;
>> 
>>                    var p  m.length-8;
>> 
>>                    document.writeln("<center>");
>> 
>>                    document.write(m.substring(p, 0));
>> 
>>                    document.writeln("</center>");
>> 
>>                    // End -->
>> 
>>           </SCRIPT>
>> 
>> He says that it works on his other web sites, which aren't on my server.
>> 
>> Suggestions?
>> 
>> Glen
>> 
> 
> Glen,
> 
> JavaScript is solely interpreted by the browser and has absolutely
> nothing to do with the server.  Why different browsers render JavaScript
> differently has to due to their respective implementations, or failure
> to implement, JavaScript.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

-- 
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message