Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function handle_login() // espace authentification abonne
- {
- getXMLHTTP();
- xhr.onreadystatechange = function()
- {
- if( xhr.readyState == 4 )
- {
- if( xhr.status == 200 )
- {
- rep = xhr.responseText ;
- {
- //more code here///////////////////////////////////////////////////
- }
- }
- }
- else
- {
- document.getElementById("button").disabled= false;
- document.getElementById("charge").style.visibility="hidden";
- }
- };
- username = document.getElementById('username').value;
- password = document.getElementById('password').value;
- xhr.open("GET", "cck_connect_hotline.php?login=" + username + "&pass=" + password, true);
- //xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- xhr.send(null);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement