Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: None  |  size: 0.19 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. When is a new connection made by browser for ajax requests?
  2. var xhr;
  3. xhr = new XMLHttpRequest();
  4. xhr.open("GET", url, true);
  5. xhr.timeout = 10000;
  6. xhr.ontimeout = timeoutFired;
  7. xhr.send(null);