httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Fellows <lfell...@4lane.com>
Subject Re: JavaScript question
Date Tue, 09 Jul 2002 17:53:09 GMT
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


Mime
View raw message