Functiondojo._xhrObj

<script src="../../js/dojo.js"></script>
defined in dojo/_base/_loader/hostenv_browser.js

does the work of portably generating a new XMLHTTPRequest object.

Usage

function () (view source)