473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to get the last updated date of a different file

Ade
Hi,

I am a complete novice to Javascript, so please excuse me if this is a
simple task. I have been playing with frames in a test piece in a book I
have, and one of them displays the data and time of last update,
unfortunately, this is the date that the source file for the particular
frame was updated. Can I tell Javascript which file I want to get the last
updated date from?

I am using the usual
dm = new Date (document.lastModified);

Thanks,

Ade
Apr 17 '07 #1
2 1601
On Apr 17, 4:27 am, "Ade" <adrian.birk...@blueyonder.co.ukwrote:
Hi,
Can I tell Javascript which file I want to get the last
updated date from?

I am using the usual
dm = new Date (document.lastModified);

no. client-side js cant get/change anything on server.

Apr 17 '07 #2
In comp.lang.javascript message <Fi******************@fe2.news.blueyonde
r.co.uk>, Tue, 17 Apr 2007 10:27:49, Ade <ad************@blueyonder.co.u
kposted:
>I am a complete novice to Javascript, so please excuse me if this is a
simple task. I have been playing with frames in a test piece in a book I
have, and one of them displays the data and time of last update,
unfortunately, this is the date that the source file for the particular
frame was updated. Can I tell Javascript which file I want to get the last
updated date from?
I think you can get the header details of other pages of your own site
by using XMLHttpRequest() - see FAQ 4.44 and the jibbering link therein.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Apr 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: JPM III | last post by:
I wrote a PHP script that allows me to post HTML entries to files on my server without going through FTP, yadda yadda. It works fine, and last night it updated both files properly. Today, it...
8
by: Dan Matthews | last post by:
Hey everybody, I have an 2000 Access database that stores job listings from potential employers for a school. I would like to be able to display the date on a webpage the last time the database...
1
by: Amanda | last post by:
Hi, hope you can help me with this one. If I want to get the date a page has been last modified, I can do something like .. document.write("<b>Last updated: "+document.lastModified+"</b>"); ...
3
by: Toby Briggs | last post by:
Hi there, New to here! I'm trying to find a script which let's people know when a page has been last updated! I've got a script, but it gives the date as mm/dd/yyyy! I would prefer...
4
by: kieran | last post by:
Hi, I import data every evening through a scheduled task from a text file. Once the data is imported, an email is sent to a user saying how much data etc.. was in the file. In case the file...
1
by: eal1 | last post by:
Does anyone know how to have Access put the "last updated" date on a report? I have a table of our university's athletic events, grouped by each sport per page. I'm trying to get the report to...
3
by: kustomguitarist | last post by:
I'm working on updating a page for a club that I'm involved in at school. It's on an apache server and I am editing the .htm file through linux. Does anyone know a script that I could include in...
8
by: rdemyan via AccessMonster.com | last post by:
Anyone have any ideas on how to determine when the back-end file (containing only tables) has been updated with new data. The date/time of the file won't work because it gets updated to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.