Created
June 14, 2011 11:01
-
-
Save feedhenry-gists/1024685 to your computer and use it in GitHub Desktop.
Current Date/Time Modify client Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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