Wednesday, July 12th, 2006
Mike Kornienko took Adobe’s Spry Framework for a spin.
He has written up his thoughts on integrating it with a PHP/MySQL backend:
Spry is Adobe’s Ajax library for manipulating XML data. It has some very unique and pretty useful functions like regions handling, related auto-updating data and stuff like that. For example, you can load XML file into your HTML document, created a template-like markup for with some spry: tags in it, and Spry will do the rest – will read the XML file and output it into your web-page in the format you have defined. Not only that. You can have several connected data sets so that when you select a row in the main table generated by Spry, and if you have a region on your web-page which is somehow depends on selected row in main table, this region will be updated automatically.
The article shows the XML that you give to Spry, the libraries involved, and the HTML components:
- <input type="button" value="sort id" onclick="dsTest.sort('id','toggle')""/>
- <input type="button" value="sort title" onclick="dsTest.sort('title','toggle')""/>
- <input type="button" value="sort content" onclick="dsTest.sort('content','toggle')""/>
- <div spry:region="dsTest">
- <table border="1">
- <tr spry:repeat="dsTest">
Posted by Dion Almaer at 7:20 am