Discussion:
Sending AJAX request with array in request
(too old to reply)
deniska
2016-05-04 12:19:30 UTC
Permalink
Hi, all.

According to documentation
<http://demo.qooxdoo.org/current/apiviewer/#qx.io.request.AbstractRequest~requestData>
, requestData can handle ArrayBuffer parameter. However when I try this:

var buf = new ArrayBuffer(16);
var ar = new Uint8Array(buf);
for(var i = 0; i < ar.length; i++)
ar[i] = i * 10;
request = new qx.io.request.Xhr();
request.setUrl(url);
request.setRequestData(buf);
request.send();

I get the following error:

Error: params must be either string or object

What am I doing wrong?



--
View this message in context: http://qooxdoo.678.n2.nabble.com/Sending-AJAX-request-with-array-in-request-tp7588323.html
Sent from the qooxdoo mailing list archive at Nabble.com.
Reed
2016-05-04 19:34:41 UTC
Permalink
Hi Deniska,

I'm afraid I don't have an answer at the moment, but would you mind
re-asking your question via Stack Overflow with the "qooxdoo" tag?
http://stackoverflow.com/questions/ask?tags=qooxdoo&title=Sending%20AJAX%20request%20with%20array%20in%20request
We’re
trying to build up a more public list of Q&A and it would be really helpful
to have your question listed there.

There are a lot of people on this list who may be able to help you, though,
so if you're able to do the above, you should reply to this thread with the
SO question URL.

Cheers,
Reed
Post by deniska
Hi, all.
According to documentation
<
http://demo.qooxdoo.org/current/apiviewer/#qx.io.request.AbstractRequest~requestData
var buf = new ArrayBuffer(16);
var ar = new Uint8Array(buf);
for(var i = 0; i < ar.length; i++)
ar[i] = i * 10;
request = new qx.io.request.Xhr();
request.setUrl(url);
request.setRequestData(buf);
request.send();
Error: params must be either string or object
What am I doing wrong?
--
http://qooxdoo.678.n2.nabble.com/Sending-AJAX-request-with-array-in-request-tp7588323.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications
Manager
Applications Manager provides deep performance insights into multiple
tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
qooxdoo-devel mailing list
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
deniska
2016-05-05 05:16:44 UTC
Permalink
Thanks, Reed.

I've already asked the question and got the answer:

http://stackoverflow.com/questions/37035641/sending-qx-io-request-xhr-request-with-array-in-request



--
View this message in context: http://qooxdoo.678.n2.nabble.com/Sending-AJAX-request-with-array-in-request-tp7588323p7588325.html
Sent from the qooxdoo mailing list archive at Nabble.com.

Loading...