Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function handle_login() // espace authentification abonne
  2.   {
  3.     getXMLHTTP();
  4.      
  5.       xhr.onreadystatechange = function()
  6.           {
  7.               if( xhr.readyState == 4 )
  8.                   {
  9.                       if( xhr.status == 200 )
  10.                           {
  11.                             rep = xhr.responseText ;
  12.                             {
  13.                             //more code here///////////////////////////////////////////////////
  14.                             }
  15.                           }
  16.                    }
  17.                  
  18.               else
  19.               {
  20.                    document.getElementById("button").disabled= false;
  21.                    document.getElementById("charge").style.visibility="hidden";
  22.                
  23.               }
  24.           };
  25.       username = document.getElementById('username').value;
  26.       password = document.getElementById('password').value;
  27.       xhr.open("GET", "cck_connect_hotline.php?login=" + username + "&pass=" + password, true);
  28.       //xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  29.       xhr.send(null);
  30.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement