- // Loop through query array and issue XML/RPC queries
- jQuery.each(arr, function(index, elt) {
- hash=elt.query.to_hash();
- if (manifold_async_debug) console.log ('sending POST on ' + api_url + " iterating on " + hash);
- jQuery.post(api_url, {'query': hash}, manifold_async_success_closure(elt.query, elt.id));
+ // Loop through query array and use ajax to send back queries (to frontend) with json
+ jQuery.each(queries, function(index, tuple) {
+ hash=tuple.query.to_hash();
+ if (manifold_async_debug) console.log ("sending POST on " + api_url + " iterating on " + tuple + " -> " + hash);
+ jQuery.post(api_url, {'query': hash}, manifold_async_success_closure(tuple.query, tuple.id));