Hi Fritz,

I think your remote request should be fine. I assume you're on qooxdoo 0.8?

Me, I tested your case on 0.8, and the request succeeded (had to 
exchange your ruby backend for a simple php script echoing "hello world" 
though) as soon as I changed the request's "completed" listener to 
something like

        this.debug("request response: " + e.getContent());

and commenting out

        // alert(qx.dev.Debug.getContent());

As far as firebug told me (and the apiviewer confirmed), getContent() is 
not a method of qx.dev.Debug, so you might have had a typo there in the 
first place...

HTH,

regards,
Stefan

Fritz Stein wrote:
> Hi,
> i wrote this programm:
> 
> 
> /**
>  * This is the main application class of your custom application "app"
>  */
> qx.Class.define("app.Application",
> {
>   extend : qx.application.Standalone,
> 
> 
>   /*
>   
> *****************************************************************************
>      MEMBERS
>   
> *****************************************************************************
>   */
> 
>   members :
>   {
>     /**
>      * This method contains the initial application code and gets called 
>      * during startup of the application
>      */
>     main : function()
>     {
> 
>       this.base(arguments);
>       
>       //Debuggin
>       if (qx.core.Variant.isSet("qx.debug", "on"))
>       {
>         qx.log.appender.Native;
>         qx.log.appender.Console;
>       }
> 
> 
>       // Create the Window
>       var win = new qx.ui.window.Window("First Window", 
> "icon/16/apps/office-calendar.png");
>       
>       win.setLayout(new qx.ui.layout.VBox(10));
>       win.setShowStatusbar(true);
>       win.setStatus("Demo loaded");
>       win.open();
>       this.getRoot().add(win, {left:20, top:20});
> 
>       // Test for move listener
>       win.addListener("move", function(e) {
>         this.debug("Moved to: " + e.getData().left + "x" + e.getData().top);
>       });
> 
>       // Test for resize listener
>       win.addListener("resize", function(e) {
>         this.debug("Resized to: " + e.getData().width + "x" + 
> e.getData().height);
>       });
> 
>       // Add an Atom
>       var atom = new qx.ui.basic.Atom("Welcome to your first own 
> Window.<br/>Have fun!", "icon/32/apps/office-address-book.png");
>       atom.setRich(true);
>       win.add(atom);
>       
>       txtTimeout=new qx.ui.form.TextField("100000");
>       win.add(txtTimeout);
>       
>       txtUrl=new 
> qx.ui.form.TextField("http://localhost/michael/rubyrpc.rxml?m={%22m%22:%22Login.getToken%22,%22p%22:%22rot%22}";);
>       win.add(txtUrl);
>             
>       txtSName=new qx.ui.form.TextField("qooxdoo.admin");
>       win.add(txtSName);
>       
>       txtMethodname=new qx.ui.form.TextField("GET");
>       win.add(txtMethodname);
>       
>       txtRes=new qx.ui.form.TextField("application/json");
>       win.add(txtRes);
>       
>       var btnsend = new qx.ui.form.Button("Send", 
> "icon/22/apps/media-video-player.png");
>       btnsend.addListener("execute", function(e) {
>         var rpc = new 
> qx.io.remote.Request(txtUrl.getValue(),txtMethodname.getValue(),txtRes.getValue());
>         rpc.addListener("completed",function(e){
>                 //never get here :(
>               alert(qx.dev.Debug.getContent());
>               //qx["tmp"]=e;  //for inspecting with the debug console
>         });
>         rpc.addListener("timeout",function(e){
>               alert("Timeout!"+e);
>         });
>         rpc.send();
>       }, this);
>     
>       win.add(btnsend);
>     }
>   }
> });
> 
> 
> 
> 
> Always i get an timeout, I don't understand. Usually my local server responds 
> in 500ms or less. I watched The request with the firebug "network" module. I 
> told me as expected that there was a XHR query, but it was answered in a sort 
> time and not 404. Do you have any clues? 
> 
> Thanks
> rtzui
> _______________________________________________________________________
> Sensationsangebot verlängert: WEB.DE FreeDSL - Telefonanschluss + DSL
> für nur 16,37 Euro/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to