Guest User

Untitled

a guest
Jan 21st, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $.get(url, {}, checkResponse)
  2.  
  3. function checkResponse(content) {}
  4.  
  5. $.ajax({
  6. async: false,
  7. type: 'GET',
  8. url: url,
  9. success: function (data) {
  10. alert(data.toString());
  11. checkResponse(data);
  12. },
  13. error: function (data) {
  14. alert("error");
  15. }
  16. });
Add Comment
Please, Sign In to add comment