I have moved the API to the same server and disabled crossDomain. I have
tried switching the method from GET to post and using setParameter,
setFormField, setUserData and none of them seem to reach the server as a GET
or POST variable.  In the below code I would like a variable of test and a
value test to be sent to the server. 
 
What do I need to do?
 
 
            button1.addEventListener("execute",
            function(e) {
                        
                        w1.setStatus('Sending Credentials...');
                        button1.setEnabled(false);
                        text1.setEnabled(false);
                        text2.setEnabled(false);
 
                        var url = 'http://server/api.php';
                        var ajaxRequest = new
qx.io.remote.Request(url,'GET',"application/xml");
                        with (ajaxRequest)
                        {
                                    setAsynchronous(true);
 
setRequestHeader("Content-Type","application/x-www-form-urlencoded");
                                    setParameter('test','test');
                                    setCrossDomain(false);
                                    
 
                                    addEventListener("completed",function(e)
{
                                    e.getData().getContent(); } );
                                    
                                    
                                    addEventListener("timeout",function(e) {
                                    alert("App API (" + url + ") did not
respond");
                                    w1.setStatus('Could not contact
server.');
                                    button1.setEnabled(true);
                                    text1.setEnabled(true);
                                    text2.setEnabled(true);
                                    } );
            
                                    send();
 
                        }
            },
            w1);
 
 
The result is a timeout.
 
 
 
Steve Ramage
Software Developer
Email: [EMAIL PROTECTED]
 
 
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to