|
#1
|
|||
|
|||
|
What the problem is???!!!
Here it is in a nutshell. I am working for an organization designing a site. The server administrator insists that I utilize their resident CGI hit counter which requires that you use SHTML. That's fine, but when I try to utilize the javascript document.lastModified event handler it returns a date of December 31, 1969 in Netscape. This does not happen in IE or if the page is not SHTML in Netscape. This is a Redhat Linux 8.0 server. So, I ask the question again, "What the problem is??!!
|
|
#2
|
|||
|
|||
|
This kind of sounds like a time function problem. *nix boxes have their clock 'birthdate' set to 1970 so this begins the unix epoch. I would interpret this to mean that they probably need to check their system clock.
I'll do a bit more digging as a machine at work is experiencing the same thing and we have just ignored it...until now! LOL |
|
#3
|
|||
|
|||
|
You might find that generating the last modified date via SSI is more effective as you're already using shtml
Code:
<!--#echo var="LAST_MODIFIED"-->
__________________
Don't forget to post back with the results |
|
#4
|
|||
|
|||
|
In the meantime, instead of using the javascript handler, why not try out the SSI equivalent of
<!--#flastmod file="index.shtml" --> which would work just the same if the file is named *.shmtl |
|
#5
|
|||
|
|||
|
check that out Steven, great minds eh? LOL
|
|
#6
|
|||
|
|||
|
#7
|
|||
|
|||
|
To Steven.Bently & Twistedcranium
Thanks!!!!!! That solved the problem. The JavaScript page showed that the Unix date is the problem and the code <!--#echo var="LAST_MODIFIED"--> returns the correct date last modified. Where has this forum been all of my life? I have gotten lots of good answears since joining. Again, Thanks. |
|
#8
|
|||
|
|||
|
Glad we could help
__________________
Don't forget to post back with the results |
![]() |
| Bookmarks |
«
Previous Topic
|
Next Topic
»
| Topic Tools | |
|
|
All times are GMT +1. The time now is 04:39 PM.
[
RSS ]








