Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. $.post(uuid.url + '/url', {
  2. username:'abc',
  3. }, function(html) {
  4. console.log('register');
  5. }, 'text');
  6.  
  7. function sendPost(inputURL) {
  8. try{
  9. var xhttp = new XMLHttpRequest();
  10. xhttp.onreadystatechange = function() {
  11. if (this.readyState == 4 && this.status == 200) {
  12. console.log(this.responseText);
  13. }
  14. };
  15. xhttp.open("POST", inputURL, true);
  16. xhttp.send();
  17.  
  18. } catch(e) {
  19. console.log(e);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement