Rev 39 | Blame | Compare with Previous | Last modification | View Log | RSS feed
$(document).ready(function() {
//alert('doc chargé!');
var nbObs = $('.nb-obs'),
nbImg = $('.nb-img'),
nbUtil = $('.nb-util');
var urlServiceNbInscrits = urlServiceAnnuaire + 'NbInscrits',
urlServiceNbImg = urlServiceCel + 'CelStatistiqueTxt/NbImagesPubliques',
urlServiceNbObs = urlServiceCel + 'CelStatistiqueTxt/NbObsPubliques';
// appels services
$.ajax(urlServiceNbInscrits, {
success: function(data) {
nbUtil.html(data.replace(/"/g,'').replace(/\B(?=(\d{3})+(?!\d))/g, " "));
}
});
$.ajax(urlServiceNbObs, {
success: function(data) {
nbObs.html(('' + data).replace(/\B(?=(\d{3})+(?!\d))/g, " "));
}
});
$.ajax(urlServiceNbImg, {
success: function(data) {
nbImg.html(('' + data).replace(/\B(?=(\d{3})+(?!\d))/g, " "));
}
});
});