> first of all, welcome to qooxdoo. :) >> I'm learning Qooxdoo and following the tutorial: >> http://manual.qooxdoo.org/1.2.x/pages/tutorials/tutorial-part-3.html#data-binding-magic > How was the tutorial thus far? Was everything ok?
Tutorial is very nice. I must say that qooxdoo documentation is excellent so far. I'm actually learning unify (http://unify.github.com/unify/), but since it's built on qooxdoo, learning qooxdoo first felt like a good thing to do. >> When I get there however, I always get "this.__store.bind is not a >> function" when clicking on the reload button. > Sounds like you forgot the context of the event listener. Do you have "this" > as third parameter in your event listener for the reload buttons execute? I just followed the tutorial. Here is what I have in Application.js: // Twitter service var service = new qooxdoo_twitter.TwitterService(); // reload handling main.addListener("reload", function() { service.fetchTweets(); }, this); And in TwitterService.js: ... members : { fetchTweets : function() { if (this.__store == null) { var url = "http://search.twitter.com/search.json...@qooxdoo"; this.__store = new qx.data.store.Jsonp(url, null, "callback"); this.__store.bind("model", this, "tweets"); } else { this.__store.reload(); } }, ... >> I looked on the API >> (http://demo.qooxdoo.org/1.2.x/apiviewer/#qx.data.store.Jsonp) and >> couldn't find the "bind" method. Am I doing anything wrong ? > > The reload is implemented in the JSON store. JSON-P store extends this store > which leads to the fact, that you have to enable Inherited (on the top right > of the API viewer) to see this method. I noticed that, but the JSON store doesn't have a 'bind' method either, nor does Object. Where is it ? > Best, > Martin Thanks for the help :) ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
