Hi,
I need a js code for always getting the server time in a webpage. This code is working but not get the time dynamically. Code gets time one time while webpage loading.
$(document).ready(function() {
$.ajax({
type: "POST",
url: "GenericWCF.svc/GetSystemTime",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(bs) {
$("#systemTime").text(bs.d);
}
});
});