Tags
javascript code below, context to follow:
$(document).ready(function () { var showPending = function () { // add the progress indicator $('#Pending').addClass('loading').show(); $.ajax({ type: "POST", url: "PortalService.asmx/GetSeasonalCounts", dataType: "json", data: "{ 'option':'" + "pending" + "' }", contentType: "application/json; charset=utf-8", success: function (msg) { // Hide the fake progress indicator graphic. $('#Pending').removeClass('loading'); // Insert the returned HTML into the <div>. $('#Pending').empty(); $('#Pending').html(msg.d); } }); window.setInterval(showPending, 1200000) } }