Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. localhost/mycall.php
  2.  
  3. $.ajax({
  4. method: 'POST',
  5. url: 'localhost/mycall.php?'+new Date().getTime()+Math.random(1,99999),
  6. data: dataToSend,
  7. success: function(data) {
  8. console.log('success');
  9. console.log(data);
  10. },
  11. error: function(jqXHR, textStatus, errorThrown)
  12. {
  13. console.log('error');
  14. console.log(textStatus);
  15. },
  16. complete: function(jqXHR, textStatus)
  17. {
  18. console.log('complete');
  19. console.log(textStatus);
  20. }
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement