More XMLHTTPRequest

Peter-Paul Koch (who now blogs on quirksmode) discusses XMLHTTPRequest in a entry. He points out that you can do something similar with a hidden iframe element. However:

  1. The iframe method doesn’t support asynchronous fetches.
  2. You can only use GET.
  3. You don’t get access to the status headers, nor can you send additional headers with your request.
  4. You’re not restricted to talking to the same host as the original page (yes, that’s a security feature.)
  5. iframe was removed from XHTML 1.0 strict.

Angus Turnbull built a version of the iframe method.

Meanwhile, [via Anne van Kesteren], Petrik de Heus built a demo using XMLHTTPRequest to load an Atom feed and transform it in place.

Possibly Related posts (machine generated):

  1. Google Suggest Roundup
  2. Mozilla’s XMLHttpRequest object
  3. Clearing a Backlog of Development Links
  4. Development Link Blogging
  5. Cross Talk

More like this: .

blog comments powered by Disqus