1var checkfrequency = 60000; //miliseconds 2 3$(document).ready(function () { 4 initAjax(); 5 keepAlive(); 6}); 7 8function initAjax() { 9 $.ajaxSetup({ complete: onRequestCompleted }); 10} 11 12function onRequestCompleted(xhr, textStatus) { 13 if (xhr.status == 403) { 14 alert("Uw sessie is verlopen. U wordt doorgestuurd naar de landingspagina."); 15 location.href = "home"; 16 } 17// else if (xhr.status != 200) { 18// alert(xhr.status + " - Er is iets verkeerd gegaan. U wordt doorgestuurd naar de loginpagina. Indien de fout nogmaals optreedt, dient u contact op te nemen met de helpdesk."); 19// location.href = "logout.aspx"; 20// } 21// 22} 23 24function keepAlive() { 25 setInterval(function () { 26 $("#loading_container,#loading").unbind("ajaxStart"); 27 $.getJSON("/handlers/ballroom.ashx?function=keepalive&rnd=" + Math.random(), function (returnData, status, xhr) { 28 if (returnData != "alive") { 29 alert("Uw sessie is verlopen. U wordt doorgestuurd naar de landingspagina"); 30 location.href = "logout.aspx"; 31 } 32 init(); 33 }); 34 }, checkfrequency); 35}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.