Andreas Junghans wrote:
> 
> You can't issue synchronous calls in a cross-domain way, only  
> asynchronous ones. This is a technical limitation that we cannot work  
> around. Even within the same domain, synchronous calls are usually a  
> bad idea: They block the whole browser until the response arrives,  
> and when there's a network problem, the user may have to force-quit  
> the browser (or have great patience since the timeouts are usually  
> quite long).
> 
> Regards,
> 
>    Andreas
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

Thanks a lot. Now i try a very simple application but it doesn´t work.

Here is the application:

qx.Proto.main = function(e)
{
        var rpc = new qx.io.remote.Rpc(
                    "http://localhost:8080/qooxdoo/.qxrpc";,
                    "qooxdoo.test"
        );
        rpc.setCrossDomain(true);
        
  // Create button
  var button1 = new qx.ui.form.Button("Alex", "custom/image/test.png");

  // Set button location
  button1.setTop(50);
  button1.setLeft(50);

  // Add button to document
  button1.addToDocument();
 // table.addToDocument();

  // Attach a tooltip
  button1.setToolTip(new qx.ui.popup.ToolTip("A nice tooltip",
"icon/32/status/dialog-information.png"));

  // Add an event listener
  button1.addEventListener("execute", function(e) {
    
    // asynchronous call
    var handler = function(result, exc) {
        if (exc == null) {
            alert("Result of async call: " + result);
        } else {
            alert("Exception during async call: " + exc);
        }
    };
        rpc.callAsync(handler, "echo", "Test");
    
  });
};

It is the standart skeletton with another EventHandler. But this doesn´t
work on another PC. I think the rpc.setCrossDomain(true); doesn´t work. I
get there warn in the log window:

247539 WARN:  qx.io.remote.RequestQueue[268]: 5500ms > 5000ms247555 WARN: 
qx.io.remote.Exchange[512]: Timeout: implementation 513

Thanks
-- 
View this message in context: 
http://www.nabble.com/Problem-with-Tomcat-tf3391950.html#a9470175
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to