Time Stamp          
  
   
 


Get Action Gets the last modified time stamp for a page. format dd-MM-yyyy hh-mm-ss

Get Paramters

  • pageName - The name of the page to get the timestamp for

Returns

  • time stamp (format dd-MM-yyyy hh-mm-ss)

Example getTimeStamp(); <script> includeLibrary("/OpenForum/Javascript/ajax.js"); function getTimeStamp() { timeStamp = doGet("/OpenForum/TimeStamp","pageName=/OpenForum/TimeStamp"); alert("Time Stamp = "+timeStamp); } </script>

Server Side Javascript for GET method

if(typeof(pageName)=="undefined") { transaction.setResult(transaction.SHOW_PAGE); } else { data = wiki.getDateTimeStamp(pageName); transaction.sendResponseHeader(); transaction.sendString(data); }
by Admin on 21/04/2008 at 10:08 PM