Advertisement
Underworld1337

Untitled

Jan 4th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.46 KB | None | 0 0
  1. $(document).ready(function() {
  2.   $(".login_submit").click(function(event){
  3.     event.preventDefault();
  4.     var name = $(".login_name").val();
  5.     var pw = $(".login_pw").val();
  6.     $.ajax({
  7.         type: "POST",
  8.         url: 'get.php?s='+self_location,
  9.         data:{ name: name, pw: pw },
  10.         success: function(data){
  11.             $("#maincontent").html(data);
  12.             console.log(data);
  13.             aCB(urlhash);
  14.         }
  15.     })
  16.   });
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement