dojo/request/default¶
authors: | Bryan Forbes |
---|---|
since: | V1.8 |
Contents
dojo/request/default is a loader plugin that loads the default module for the platform. Usually, you should use dojo/request to load the default provider:
require(["dojo/request"], function(request){
request("request.html").then(function(data){
// do something with the handled data
}, function(err){
// handle an error condition
}, function(evt){
// handle a progress event
});
});
See also¶
- dojo/request - The whole Dojo Request API
- dojo/request/xhr - The default provider for a browser based platform
- dojo/request/node - The default provider for the node.js platform
- dojo/request/iframe - A provider that uses IFrame for transport
- dojo/request/script - A provider that expects the response to be embedded in a
<script>
tag. - dojo/request/handlers - Handles the data from a response as designated in the
handleAs
request option. Also provides the ability to register additional types of handlers. - dojo/request/registry - Allows for registration of different providers against different URIs.
- dojo/request/notify - Publishes the
dojo/request
topics for requests. - dojo/request/watch - Allows the watching of inflight requests.
- dojo/Deferred - The base class for managing asynchronous processes.
- dojo/promise - The package that provides the Dojo Promise API.