Guest User

Untitled

a guest
Dec 9th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. var xhr = new XMLHttpRequest(),
  2. xhr2 = new XMLHttpRequest()
  3. xhr.open("POST", "LINK", 1);
  4. xhr.send('DATA');
  5. xhr2.open("POST", "LINK", 1);
  6. xhr2.send('DATA');
  7. xhr.timeout = 220;
  8. xhr2.timeout = 220;
  9. XMLHttpRequest.ontimeout = timeoutRaised;
  10. function timeoutRaised()
  11. {
  12. alert("PASSOU DO TEMPO");
  13. }
  14.  
  15. var xhr = new XMLHttpRequest(),
  16. xhr.open("POST", "LINK", 1);
  17. xhr.send('DATA');
  18. xhr.send('DATA');
Add Comment
Please, Sign In to add comment