Greetings!
After couple of weeks of trawling through sources, examples and
documentation I finally have given in and have to ask for help. I
think I'm having a fundamental misunderstanding as to how
communication happens between the javascript client application and my
server.
I tried following the initial documented examples using the perl rpc
server but it doesn't seem to be present in the 0.8 release that I can
find. The only versions I seem to be able to find seem to be in 0.7.
So, I (foolishly probably) attempted to create my own test JSON like so:
#!/usr/bin/perl
use JSON;
print("Content-type: text/plain\n\n");
print(to_json({nodes => ["node1", "node2", "node3"]}));
In my javascript I try to do the following:
var req = new qx.io.remote.Request("/cgi-bin/foo");
req.addListener("completed", function (e) {
var nodes = e.getContent().nodes;
alert(nodes);
etc...
Of course, I get "undefined".
So, in the interests of trying to understand what I did wrong I
sniffed the traffic between my browser and the demo website and
instead of seeing straight JSON come over the wire, I saw javascript.
Now I'm thoroughly confused.
I would assume that my bright idea of simply building a server that
would return JSON data was a fools errand. Given that, can someone
please point me at either some documentation or source-code that uses
v0.8 with a perl backend.
A simple kick in the right direction will be sufficient for me to
climb my way to working code.
Thanks,
Red
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel