lb.base.ajax

AJAX (Asynchronous JavaScript And XML) Adapter Module for Base Library

Authors

Copyright

Eric Bréchemier © 2011, Some Rights Reserved Legal-Box SAS © 2010-2011, All Rights Reserved

License

BSD License http://creativecommons.org/licenses/BSD/

Version

2011-08-14

Summary
lb.base.ajaxAJAX (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.

Functions

send(url, data, receive)

Send data to given URL, and trigger receive() with asynchronous answer.

Parameters

urlstring, the remote URL, respecting same origin policy
dataobject|array, the data to send, to be converted to JSON.  No functions should be present in this data object.
receivefunction, the callback to trigger.  The response object or array, converted from JSON, will be provided as parameter.
Close