Skip to content

Instantly share code, notes, and snippets.

@feedhenry-gists
Created June 14, 2011 11:01
Show Gist options
  • Save feedhenry-gists/1024685 to your computer and use it in GitHub Desktop.
Save feedhenry-gists/1024685 to your computer and use it in GitHub Desktop.
Current Date/Time Modify client Code
function readTime() {
$fh.act({act:'getCurrentTime'}, function(res) {
// Convert the response into a jQuery Object
var resObj = $(res.response);
// Extract the element with the id of 'ct' - this is the element that contains the time
var time = resObj.find('#ct');
// Display the time in-app using jQuery
$('#current_time_response').html(time);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment