AJAX (Asynchronous JavaScript And XML) Adapter Module for Base Library
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. | AJAX (Asynchronous JavaScript And XML) Adapter Module for Base Library |
| Functions | |
| send(url, data, receive) | Send data to given URL, and trigger receive() with asynchronous answer. |
Send data to given URL, and trigger receive() with asynchronous answer.
| url | string, the remote URL, respecting same origin policy |
| data | object|array, the data to send, to be converted to JSON. No functions should be present in this data object. |
| receive | function, the callback to trigger. The response object or array, converted from JSON, will be provided as parameter. |