Hello, I am new to Qooxdoo, about 2 weeks. Nice progress building forms. Very happy! I am using Qooxdoo Vers1.5
Now I decide to test the 'A' of Ajax, and make communication to a back-end of some size that has been reduced, for testing now, to only a few lines... The back-end is written in the Ruby language and it is now "subclassed" by the *Sinatra simple HTTP Web-framework*. In this framework I have implemented a few "get" blocks which are basically just "hello world"( testing stuff for now). All the browsers I test (FireFox, Chrome and so on) go to my LocalHost and I see the different basic text greetings based on using localhost:nnnn/hello or localhost:nnnn/bye and so on (as 'gets'). (Sinatra is chosen because Deployment is very simple. It is based on "Rack" same as Ruby on Rails, but in my development environment it is using a Web Server called 'Webrick' which is very simple and has no configuration file (I think)) So, I have tried everything now that I can think of to 'just' get a 'simple' text response. This is nows maybe 20 variations of 3 or 4 basic calls.... I can see from the Sinatra side that a request is recognized and that the url is reported to look exactly as it looks when it comes from a browser. This code seems about the most promising: * var req = new qx.io.remote.Request( "http://localhost:4567/hello", "GET", "text/plain" ); req.setCrossDomain( true ); //req.useBasicHttpAuth = false; req.addListener("failed", function() { M.trace("------------>failed" ); }, this); ........................... Listeners added for every documented event req.send() * and same basic thing for this initial request: * var req = new qx.bom.request.Xhr(); with: req.open("GET", "http://localhost:4567/hallo"); req.send(); * On all variations it always ends with "fail" to get data - (sometimes with 'timeout' (but default very high and I play with this) or there are sometimes there appears to be less success.) On the promising variations, to my best guess, Sinatra is giving exact same messages as when it successfully services Browser calls. As said this is a very simple set up on one machine, no firewalls, no security (that I know of) no complex server like Apache, and a very simple request. (I try "POST", try all documented params that make any sense to me. Everything and only *req.setCrossDomain( true ); * seemed to help, but it still fails. I have just run out of things to try, and I do not wish to "give up" on using Sinatra, but there are many 'server frameworks' which seem to be more complex such as a Ruby implementation of 'EventMachine' (like the Python 'twisted' version, I think). Please, what am I missing? What command is best at such a "high" (?) level? Thank you very much in advance for any response to this veteran newbie. Sincerely, George Koller -- View this message in context: http://qooxdoo.678.n2.nabble.com/Asynchronous-io-remote-Request-is-failing-to-get-Response-from-a-simple-Web-Server-Sinatra-tp6893712p6893712.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-d2d-oct _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
