My JavaScript code is barely an Ajax request that expects XML to be returned from back-end. The back-end can return execute_callback as one of XML tags like thi
You can just pass them all into your function:
function someFunction(){
for(i = 0; i < arguments.length; i++)
alert(arguments[i]);
}
Javascript functions have an arguments array-like object, and it is syntactically correct to call a javascript function with any number of arguments.
someFunction(1, 2, 'test', ['test', 'array'], 5, 0);
is a valid call to that function.