I've had the time to take a quick look at the ultraimg API [1] It doesn't seem to support JSONP! That's why qooxdoo's Jsonp parser fails. There's no JavaScript "function call" in the result. Just Data <code>{"da":"ta"}</code> (JSON) instead of <code>someCallback({"da":"ta"})</code> (JSONP)
I'm not sure if you can just use qx.io.request.Xhr instead, but Cross-Domain-Request issues might arise. That's it from my part ;) /Peter [1] http://ultraimg.com/page/api Am 4/8/2015 um 3:04 PM schrieb Peter Schneider: > Hmm, > > why do you thing "loaded" would contain the result? > As far as I read the documentation, "Data event fired after the model has been > created. The data will be the created model." > The model itself would be accessible under "storage.getModel()" > > > But I think that reason for the error messages you are getting, is due to the > fact that you might have to provide a delegate to Jsonp that handles > (converts) > the returned result data. > > The Response contains e.g. > <code> > // ... > "date":"2015-04-08 13:39:33", > "date_gmt":"2015-04-08 12:39:33", > // ... > </code> > Which might not get parsed correct. > > This might be the reason for the strange trailing ":1" message you were > reporting earlier. > > I can currently not provide a working playground example, sorry not enough > time. > > You might have to write your own storage class or at least a "fitting" > delegate that handles the returned data. > > All this are "I probably think"-hints, so they might not be 100% correct ;) > > /Peter > > > > Am 4/8/2015 um 1:56 PM schrieb slah: >> I need to get the returned response, which is not available on the >> "changeState" event but is in "loaded" event, which is never fired, may be >> due to the error I mentionned previousely. >> >> Regards, >> >> >> Peter Schneider wrote >>> You were listening to the wrong event. >>> "changeState" is what you're looking for I think >>> http://tinyurl.com/l5lj3re >>> >>> >>> "loaded" is something completely different... >>> >>> See: http://demo.qooxdoo.org/4.2/apiviewer/#qx.data.store.Json~changeState >>> vs. http://demo.qooxdoo.org/4.2/apiviewer/#qx.data.store.Json~loaded >>> >>> >>> >>>> Hello, >>>> >>>> I still can't get the "loaded" event fired, please check the console (F12 >>>> for chrome) and you can see: >>>> >>>> Uncaught SyntaxError: Unexpected token : >>>> ?key=3374fa58c672fcaad8dab979f7687397&source=https%3A%2F%2Fwww.google.tn%2Fimages%2Fsrpr%2Flogo11w.…:1 >>>> >>>> >>>> notice the ":1" in the end. >>>> >>>> When I run the query on the browser's address bar, it just returns the >>>> result fine. >>>> >>>> Regards, -- ** Unsere Veranstaltungen 2015 transport logistic München Halle B2, Stand 317/518 5.5.-8.5.2015 MöLo Kassel 18.6.-20.6.2015 Postexpo Paris 29.9.-1.10.2015 ** NEU: Unser BLOG telematics-magazine.com ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel