Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Reply
 
Topic Tools
  #1  
Old November 21st, 2003, 07:19 PM
bg703 bg703 is offline
Member
 
Join Date: Oct 2003
Age: 51
Posts: 68
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??!!
Reply With Quote
  #2  
Old November 21st, 2003, 07:46 PM
twistedcranium twistedcranium is offline
CTH Subscriber
 
Join Date: May 2003
Posts: 1,133
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
Reply With Quote
  #3  
Old November 21st, 2003, 07:48 PM
Steven.Bentley Steven.Bentley is offline
CTH Subscriber
 
Join Date: Nov 2000
Location: West Yorkshire, UK
Age: 29
Posts: 3,840
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
Reply With Quote
  #4  
Old November 21st, 2003, 07:55 PM
twistedcranium twistedcranium is offline
CTH Subscriber
 
Join Date: May 2003
Posts: 1,133
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
Reply With Quote
  #5  
Old November 21st, 2003, 07:56 PM
twistedcranium twistedcranium is offline
CTH Subscriber
 
Join Date: May 2003
Posts: 1,133
check that out Steven, great minds eh? LOL
Reply With Quote
  #6  
Old November 21st, 2003, 08:35 PM
twistedcranium twistedcranium is offline
CTH Subscriber
 
Join Date: May 2003
Posts: 1,133
fyi....

for the java issue...

http://www.spiderpro.com/bu/bujvsh003.html
Reply With Quote
  #7  
Old November 24th, 2003, 05:41 PM
bg703 bg703 is offline
Member
 
Join Date: Oct 2003
Age: 51
Posts: 68
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.
Reply With Quote
  #8  
Old November 24th, 2003, 07:18 PM
Steven.Bentley Steven.Bentley is offline
CTH Subscriber
 
Join Date: Nov 2000
Location: West Yorkshire, UK
Age: 29
Posts: 3,840
Glad we could help
__________________
Don't forget to post back with the results
Reply With Quote
Reply

Bookmarks

Topic Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:39 PM.

[ RSS ]