var SSO_error=""; var SSO_init=false; function paintUser(){ try{ $.getJSON("/INESSO/", function (response){ $("body").append("
" + "

" + "Usuario : " + response.Usuario + (response.Apellidos.length>0 ? "
Nombre : " + response.Nombre:"") + (response.Apellidos.length>0 ? "
Apellidos : " + response.Apellidos:"") +"
SALIR" +"

" + "
"); $( "#UserTab" ) .mouseenter(function() { $( "#UserTab .Detalles" ).show( "slow"); }) .mouseleave(function() { $( "#UserTab .Detalles" ).hide( "slow"); }); }) .fail(function(textStatus){SSO_error+=textStatus }) ; }catch(err){ SSO_error+=err; } } if ($(location).attr('protocol')=="https:"){ $('head').append(''); $(document).ready(function(){ try{ if (!SSO_init){ SSO_init=true; setTimeout("paintUser()",500); } }catch(err){ SSO_error+=err; } }); }