-function manifold_async_exec_render(arr)
-{
-
- // start spinners
- //onObjectAvailable('Spinners', function(){ Spinners.create('.loading').play(); }, this, true);
- jQuery('.loading').spin();
-
- // We use js function closure to be able to pass the query (array) to the
- // callback function used when data is received
- var manifold_async_success_wrapper = function(query, id) {
- return function(data, textStatus) {
- manifold_async_success(data, query, id);
- };
- };
-
- // Loop through query array and issue XML/RPC queries
- jQuery.each(arr, function(index, elt) {
- // we do rendering by default
- jQuery.post(api_render_url, {'query': elt.query.to_hash()}, manifold_async_success_wrapper(elt.query, elt.id));
- })
-}
-
-function manifold_async_render(data, query)
-{
- // We use js function closure to be able to pass the query (array) to the
- // callback function used when data is received
- var manifold_async_render_success_wrapper = function(query) {
- return function(data, textStatus) {
- manifold_async_render_success(data, query);
- };
- };
-
- jQuery.post(api_render_url, {'data': data, 'query': query.to_hash()}, manifold_async_render_success_wrapper(data, query));
-}
-