On Wed, Sep 28, 2011 at 06:33, ksadil <ksa...@gmail.com> wrote:
> 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);
>
This looks like you've asked for an array of results.
> 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);
>
'result' here is probably an array, which JavaScript considers to be an
Object. There are two easy ways to look at the actual contents:
1. qx.dev.Debug.debugObject() will recursively descend through any object
and display it. (You might also consider qx.dev.DebugObjectToString().)
2. Using Firebug, the fabulous Firefox debugger, select the "Net" tab,
and look at the actual result being sent back on the wire. With Firebug, you
can also set a breakpoint in your handler function, to look at the value of
'result'.
Cheers,
Derrell
------------------------------------------------------------------------------
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