javascript not working once server side includes were turned on

Linda Woods Hyman lwhyman at pacbell.net
Mon Jun 11 11:41:20 EDT 2001


Hi gals/guys. I need your sage advice once again. Recently our system administrator broke down and fully implemented server side includes. We can now use ssi's without having to change the extension to .shtml or having to stash it in a special directory.  Hurray! That only took 2 + years. 

Now I am having a problem with a pre-existing javascript that we were using to create the "file last modified" date. (The other javascript on our site appears to be working just fine) I know there is a way to use the "echo" as well as some other statements to generate a last modified statement and date.  Can anyone help? Here is the old javascript code just for giggles. For an example see http://www.kn.pacbell.com/wired/webtime/ which is reflecting a date of December 31, 1969. Thanks.

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Kenneth Preston <drkennan at ionet.net> -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
<!-- Script Size:  0.65 KB  -->
var m = "Last revised " + document.lastModified;
var p = m.length-8;
document.writeln(" ");
document.write(m.substring(p, 0));
document.writeln(" ");
// End -->
</SCRIPT>
****************************
Linda Woods Hyman, MLS., MA.
Pacific Bell Education First
(619) 237-2020
http://www.kn.pacbell.com
lwhyman at pacbell.net


More information about the Web4lib mailing list