Makes an external cross domain request.
<static> getExternalResource( url, options )
| Name | Type | Description |
| url | String | The url to make request to |
| options | anonymous.options | a set of key/value pairs that configure the underlying request. |
var options = {
method: "GET",
data: "data",
async: true,
headers: {
"Content-Type": "text/plain;charset=UTF-8"
},
complete: function(response) {
// invoked when the request completes (asynchronous mode)
if (response.status === 200)
alert("Update successful");
else
alert("Update Failed");
}
};
getExternalResource(url, options);