Never mind it was a server problem.
Thanks,
Steve Ramage
Software Developer
IP Applications Solutions Inc
Email: [EMAIL PROTECTED]
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Ramage
Sent: Thursday, May 24, 2007 2:01 PM
To: 'qooxdoo Development'
Subject: [qooxdoo-devel] Request Question in 0.6.6 Cont.
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