Skip to content
Make HTTP request using XDomainRequest or Superagent
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
bower.json
makeHTTPRequest.js

README.md

makeHTTPRequest.js

Make HTTP request using XDomainRequest (on IE9 and below) or Superagent (on other browsers)

<script src="../bower_components/xdomainrequest/xdomainrequest.js"></script>
<script src="../bower_components/superagent/superagent.js"></script>
<script src="../bower_components/bowser/bowser.js"></script>
<script src="../bower_components/makeHTTPRequest.js/makeHTTPRequest.js"></script>

<script>
makeHTTPRequest(method, address, isJSON, data, callback)
</script>
Something went wrong with that request. Please try again.