/*$( document ).ajaxStart( function() { $( '#spinner' ).show(); }).ajaxStop( function() { $( '#spinner' ).hide(); }); */ /* Get the service status of the user */ $(function() { var img_check = ' OK'; } else { image = img_error + ' title="Ingen konto (mangler Kerberos principal)." />'; } $("#client_status").html(image); }); $.getJSON('/userstatus/wireless/?format=json', function(data) { if(data.active) { image = img_check + ' title="Du har tilgang til trådløst nettverk. \nSiste vellykkede pålogging: ' + data.last_successful_auth + '" />'; } else { image = img_error + ' title="Ingen trådløskonto (i Radius)." />'; } $("#wireless_status").html(image); }); });