Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- localhost/mycall.php
- $.ajax({
- method: 'POST',
- url: 'localhost/mycall.php?'+new Date().getTime()+Math.random(1,99999),
- data: dataToSend,
- success: function(data) {
- console.log('success');
- console.log(data);
- },
- error: function(jqXHR, textStatus, errorThrown)
- {
- console.log('error');
- console.log(textStatus);
- },
- complete: function(jqXHR, textStatus)
- {
- console.log('complete');
- console.log(textStatus);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement