Neolane - JavaScript API - v6.1.0

Unknown
wait
Watis until the end of a list of asynchronous queries.
wait (requests)
Parameters
requests
A table of queries.
Return value
None.
Remarks
The function doesn't apply to a query but is a function of the HttpClientRequest bin.

Example:

var req = new HttpClientRequest("http://www.neolane.com/")
req.complete = function(req, context, status) { logInfo(status) }
req.execute(false, true)

HttpClientRequest.wait( [req] )

A query may only be added to the list if it is asynchronous and if the execute call hasn't raised an exception.

Once a query is finished, it is automatically deleted from the list. This means that when the function returns control, the table passed as a parameter will be empty.

The list can be modified by the complete function: for instance, it is possible to start a new query and add it to the list.

Features
Method of class: HttpClientRequest
Available in:
  • Content management
  • Delivery properties
  • Typology rule
  • JSSP
  • SOAP Method
  • WebApp
  • Workflow

jsapi-en

previous page start next page