I am running the following code on the php rpc server to read data from a database:
function method_getData($params, $error) { $dbhandle = sqlite_open('filename2.sqlite'); $result = sqlite_array_query($dbhandle, 'SELECT requests FROM tablename', SQLITE_ASSOC); sqlite_close($dbhandle); return $result ; } and calling it with this client code: // asynchronous call var handler = function(result, exc) { if (exc == null) { alert("Result of async call: " + result); } else { alert("Exception during async call: " + exc); } }; rpc.callAsync(handler, "getData"); The result in the alert is like "object Object". If I return only one row to the client, the data is displayed correctly. Do I need to pre-process the $result somehow before sending? -- View this message in context: http://qooxdoo.678.n2.nabble.com/preparing-data-for-rpc-transmission-from-php-to-qooxdoo-tp6839664p6839664.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel