Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
How to get the recent modified time stamp of a .page file
Migrateduser
Hi ,
I have this requirement to add the datestamp on all .page file which will update based on the last date that page was changed.
Initially started off to write a javascript inside my component (which all these page have) but this did not work out
[HTML]
<script>
var lastmod = document.lastModified ;
var lastmoddate = Date.parse(lastmod);
document.writeln("Last Modified: " + lastmod);
</script>
[/HTML]
The above script is printing the current date and time stamp every time when the page loads. So i left this option to use JS, Then tried to get the current page name
[PHP]
$PAGE_LINK[.]
<script>
var pageInfo = '
';
</script>
[/PHP]
so that with this input I may pull out the details of the page using some external call. can we use perl for a external call or should we have java to handle this Can any one feed in some ideas to acheive this functionality
Find more posts tagged with
Comments
There are no comments yet