Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhr = new XMLHttpRequest(),
- xhr2 = new XMLHttpRequest()
- xhr.open("POST", "LINK", 1);
- xhr.send('DATA');
- xhr2.open("POST", "LINK", 1);
- xhr2.send('DATA');
- xhr.timeout = 220;
- xhr2.timeout = 220;
- XMLHttpRequest.ontimeout = timeoutRaised;
- function timeoutRaised()
- {
- alert("PASSOU DO TEMPO");
- }
- var xhr = new XMLHttpRequest(),
- xhr.open("POST", "LINK", 1);
- xhr.send('DATA');
- xhr.send('DATA');
Add Comment
Please, Sign In to add comment