Spry framework is great! but…
When I first discovered the Spry Ajax framework by Adobe I was jubilant. It gives my HTML applications a similar functionality to the Flex applications I so love. For those who haven’t yet discovered Spry I can tell you it’s a collection of APIs, tools and widgets that make it easier for you to implement ajax functionality on your web site. Many of the widgets are useless (to me) but in general it’s excellent. You can more or less just associate a set of graphics (like rows in a table) with an array (imported externally or built into the page) and the graphics repeat themselves according to the arrays rows. You have to try it to understand its brilliance.
The downside
The documentation is very thorough, but very badly structured. As an example the API documentation does not include the events that can be “listened to” by observers. One has to browse through the Overview document and make much use of the “find” feature of the browser (thank god I’m using Firefox) to find such things.
Another problem is that it sometimes just don’t work. The framework has a really nifty debugging tool built into it, but sometimes errors don’t fire. Simply nothing happens and that makes me furious! I’ve been trying to solve such a problem all day today, but simply can’t find what’s wrong. Firebug (a must-have tool) tells me my dataset has all the data. If I look through the page’s DOM I can find the object there, with all the data in it, but the {labels} I have used in the code are replaced by… nothing…
I’m tired…
Kin Blas said,
Wrote on June 13, 2008 @ 6:44 pm
Hi Daniel,
Thanks for mentioning the lack of documentation for the notifications. I’ll make sure we add the notifications that are fired for both regions and data sets to the API docs.
Regarding your page problem. Have you tried posting to the Spry forums for help? If you provide an URL that shows the problem, folks there are more than happy to help.
Also, have you tried using the Data Set explorer to load your data? It is a sample file in the Spry zip, you can find it here:
http://labs.adobe.com/technologies/spry/samples/data_region/DataSetExplorer.html
–== Kin Blas ==–
Kin Blas said,
Wrote on June 13, 2008 @ 6:45 pm
Forgot to post a link to the forums. You can get to it off of this page:
http://labs.adobe.com/technologies/spry/home.html
–== Kin Blas ==–
admin said,
Wrote on June 13, 2008 @ 6:59 pm
Thank you for the tip, Kin. I’ll definitely try posting my problems to the forums in the future. The DataSetExplorer seems smart. Hadn’t found that.
I actually found the error mentioned in the post at last. I hade accidentally refered to a variable as first Spry.Data.DataSet in the constructor and then Spry.Data.JSONDataSet while loading the data. I guess that made the script confused
I suppose I am a bit spoiled after working a few years with Adobe Flex, where every single little error is displayed as soon as you save the document. Even coding in Flash feels sluggish these days…