On Thu, Mar 3, 2011 at 14:29, John de la Garza <[email protected]> wrote:
Please send questions to the mailing list, not to me personally. When you
have a problem, it's likely others might too, and having it on the mailing
list makes it searchable. I'm including the mailing list in the response.
> What about sending a list? I can't do that either.
>
> this code: rpc.callSync("get_prog",runs) works if runs is a string,
> but if it is an array I get his error: UNEXPECTED origin undefined
> error undefined: cannot concatenate 'str' and 'list' objects
>
> this is on the cleint and the server never gets hit.
>
This indicates that your server IS being hit, and it is sending back an
error response in the incorrect format. Its response does not contain the
required 'origin' member, nor the required 'code' member. It does, however,
have a 'message' member which contains the string, "cannot concatenate 'str'
and 'list' objects".
You should use the "Net" tab in Firebug to look at exactly what data is
being passed between client and server.
> Must I serialize it myself? I was expecting I could pass in a list.
If you pass an array as a parameter to an RPC, it will be serialized into
JSON as an array. The Net tab of Firebug will show you exactly what's being
sent.
Cheers,
Derrell
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel