Asynchronous Communication with a Remote Server Plugin for the Sandbox API
Eric Bréchemier © 2011, Some Rights Reserved Legal-Box SAS © 2010-2011, All Rights Reserved
BSD License http://creativecommons.org/licenses/BSD/
2011-08-14
lb. | Asynchronous Communication with a Remote Server Plugin for the Sandbox API |
Functions | |
server(sandbox) | Define methods in the ‘server’ property of given sandbox. |
sandbox. | Send and receive data from the remote host. |
Send and receive data from the remote host.
url | string, a url on remote host (must respect same origin policy) |
data | object, the data to send to the server. It must be valid JSON. |
receive | function, the callback with data received in response from the server. The data provided in argument will be a valid JSON object or array. |