Hi, 

I have got a question about JsonP store. How can I use some method in class
to process JsonP data? 

My "service" returns for example

myapp.service.Process({
    "framework" : "qooxdoo",
    "version" : "3.0.1"
})

But if I make request with 

var store = new qx.data.store.Jsonp("http://example.com/jsonpTest);

In firebug console is message "myapp.service is udefined".

I tried to solve this with two attemtps

1) Adding next code into Application.js

myapp.service = {};
myapp.service.processJsonpData = this.processJsonpData

and method

processJsonpData : function(service, data) {...}

2) Rewrite "service" that returns something like "new
myapp.service.Process(...)";

Both works (I can works with data) but any of this attempts doesn't seems
like good solution for me.

And also in both cases "error" event is fired, but there is no message so I
haven't got any idea what was wrong.

Thanks for any answer :)

PS.: I probably can set header 'Access-Control-Allow-Origin: *' but I would
like avoid this solution too.




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/JsonP-callback-qx-like-name-tp7584924.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to