Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkLogin()
- {
- // navigator.notification.alert("hiii");
- var username;
- var password;
- var x=new XMLHttpRequest();
- x.onreadystatechange=function()
- {
- // alert("....."+x.responseText);
- if (x.readyState == 4 && x.status == 200)
- {
- // alert(x.readyState+" --- "+x.status);
- alert("hai checkLogin");
- var item=x.responseText.trim();
- alert("Message :"+item);
- if(item=="1")
- {
- window.location="home.html";
- }
- }
- }
- //alert("open");
- x.open("POST", "http://localhost:8087/CarRental/com/selcar/getLogin.jsp?username="+document.getElementById('username').value+"&password="+document.getElementById('loginpaswrd').value, true);
- x.send();
Add Comment
Please, Sign In to add comment