Guest User

Untitled

a guest
Nov 11th, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("#password-button").click(function(){
  2.  var password="";
  3.  var numbers =[0,0,0,0,0,0];
  4.  for(var i=0;i<=5;i++){
  5.     numbers[i] = Math.floor((Math.random() * 25) + 65);
  6.     password += String.fromCharCode(numbers[i]);
  7.  }
  8.    $(".LoginError").text("Nowe haslo: " + password);
  9.  
  10.   $.ajax({
  11.                     type: 'post',
  12.                     url: 'dzialaj.php',
  13.                     data: {'password': password},
  14.                     cache:false,
  15.                     success: function(data)
  16.                     {
  17.                         alert(data);
  18.                  }
  19.   });
  20.    
  21. });
Advertisement
Add Comment
Please, Sign In to add comment