%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/kfvehpdt/musculation-relax.com/
Upload File :
Create Path :
Current File : /home/kfvehpdt/musculation-relax.com/flux.js

function upProduit(url) {
  my_ajax(document.getElementById('flux'), 'flux.php?ndd=' + url, document.getElementById('flux'));

}
function upGoyave(site, id) {
  my_ajax(document.getElementById('flux'), 'goyave.php?ndd=' + site + '&page=' + id, document.getElementById('flux'));
}
  

function my_ajax(id,url,info) {
 
  info.style.display = 'block';
 
  if(window.XMLHttpRequest) {
   xhr_object = new XMLHttpRequest();
   } else {
  if (window.ActiveXObject) {
   xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
   }
  }
  
  xhr_object.open("GET", url, true);
  xhr_object.onreadystatechange = function(){
   
  if ( xhr_object.readyState == 1 )
  { 
   info.innerHTML = 'Chargement...';
  }  
  if ( xhr_object.readyState == 2 )
  { 
   info.innerHTML = 'Verification...';
  }
  
  if ( xhr_object.readyState == 3 )
  { 
   info.innerHTML = 'En cours...';
  }
   
  if ( xhr_object.readyState == 4 )
  {
   info.innerHTML = '';
   id.innerHTML = xhr_object.responseText;
  }
  }
  xhr_object.send(null);
}

Zerion Mini Shell 1.0