[AccessD] OT: Javascript

Mitsules, Mark Mark.Mitsules at ngc.com
Fri Jun 20 10:25:30 CDT 2003


Well, I replaced my script with <!--#echo var="LAST_MODIFIED"-->.  it
displayed today's date as expected, but I obviously have to wait until
tomorrow to see if it REALLY worked. :(

Thanks for your help!


Mark


-----Original Message-----
From: Bryan Carbonnell [mailto:Bryan_Carbonnell at cbc.ca] 
Sent: Friday, June 20, 2003 11:01 AM
To: accessd at databaseadvisors.com
Subject: RE: [AccessD] OT: Javascript


I've never used ASP so I'm not sure. I would suspect it does. But why add
ASP to the mix?

Why not just use the language the .stm uses?

OK Mark, this may just be your lucky day. While looking for some more info
on .stm files I found this web page that might help:

http://whatis.techtarget.com/definition/0,,sid9_gci214225,00.html

Here is the relevant part:

<!--#echo var="LAST_MODIFIED"--> 

and the server will obtain the last-modified date for the file and insert it
before the HTML file is sent to requestors. 

LAST_MODIFIED is one of several environment variables that an operating
system can keep track of and that can be accessible to a server program. The
server administrator can make these environment variables usable when the
system is set up. 

How's that for an answer :)

Bryan Carbonnell
bryan_carbonnell at cbc.ca

>>> Mark.Mitsules at ngc.com 20-Jun-03 10:49:19 AM >>>
Bryan,

Thanks for your reply.  Yes, it does make sense, that's why I included that
bit of information...I had a sneaky suspicion.  As far as "server-side code"
is concerned, I've only dabbled in ASP.  Do you know if ASP is capable of
achieving my goal while still retaining the SSI requirement of a .stm file
extension?  Or, should I be headed in another direction?


Mark


-----Original Message-----
From: Bryan Carbonnell [mailto:Bryan_Carbonnell at cbc.ca] 
Sent: Friday, June 20, 2003 10:27 AM
To: accessd at databaseadvisors.com 
Subject: Re: [AccessD] OT: Javascript


Mark,

Not being all that good at Javascript, take this with a grain of salt.

Since you are using SSI to "create" the HTML page, and Javascript is a
Client Side script, the JS sees the last modified date as today, which is
when the HTML document that the browser sees was last modified by the
server.

I think you will need some server-side code to get the last modified date of
the html file before it gets to the client.

Does that make sense?

Bryan Carbonnell
bryan_carbonnell at cbc.ca 


>>> Mark.Mitsules at ngc.com 20-Jun-03 10:16:32 AM >>>
Group,

I am not familiar with JavaScript.  On each departmental webpage I would
like to place the last "Modified" date (as would be reported from the
operating system).  The routine below was emailed to me as is, but, when
implemented, seems to provide only today's date.  Can anyone spot the
problem and provide a solution?

Does it make a difference that these pages are .stm (using server-side
includes) instead of .htm?  Is it a problem with how I implement it?


_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com 
http://databaseadvisors.com/mailman/listinfo/accessd 
Website: http://www.databaseadvisors.com 
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com 
http://databaseadvisors.com/mailman/listinfo/accessd 
Website: http://www.databaseadvisors.com

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


More information about the AccessD mailing list