Hello,

I'm trying to make my app communicate with the server. 

Well I've tried json, but I couldn't set Google Chrome in order to load get
json from a server when the javascript is ran from the file. This is just a
little annoyance, because I would like to use json in the final release, but
it's just a little problem.

Now I tryed to make it work with jsonp and it works well. But it uses the
get method and as you know:

AbstractRequest.js
    _getMethod: function() {
      return "GET";
    },
and 
    _serializeData: function(data) {
      var isPost = typeof this.getMethod !== "undefined" && this.getMethod()
== "POST";
(I don't understand why somewhere it's used the _getMethod and somewhere
else the getMethod, as they don't point to the same place)

so I don't really know how to make my store load data with post method

      var store = new qx.data.store.Jsonp("http://localhost:3000/data";, {
        configureRequest: function(req){
          debugger;
          //req.setMethod('POST'); // doesn't work anyway
          req.setRequestData({a:2});
        }
      });

I would like to send some data to the server but... can't make it work.

Any help is appreciated, thanks ;)


--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Some-problems-getting-and-sending-data-tp7544796.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to