:: Documentation >>

async

True for asynchronous request (default) or false otherwise.

Normally AW.HTTP.Request makes asynchronous calls and returns results after some delay in response() callback. Setting async to false makes a synchronous request and the request() method does not return until the result is received and the response() method is called.

Syntax

var value = obj.getAsync(); 
obj.setAsync(value);        

Examples

var req = new AW.HTTP.Request;
req.setURL('<url>');
req.setAsync(false); // make synchronous request
req.request(); 
alert(req.getResponseText());

See also

request method, response method (callback)

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5