Spry - Change Log

Changes for Spry PreRelease 1.2 - 2006/07/10 Spry is now compatible with frameworks based on Prototype 1.5 rc0 or later. Switched all hash tables (associative arrays) to use Object instead of Array. Removed all Spry.Utils.propertyIsEnumerable() calls from all for/in loops. Small fix to xpath.js to switch a loop from for/in to a normal for loop. Spry:content can now be used inside a spry:region or spry:detailregion, as well as on the region element itself. Auto stripping of the SpryHiddenRegion class name from region containers on load to aid in the hiding of data references. Added support for the spry:state attribute which can be used by a designer tell Spry what markup to use when the region is in its "loading", "error" or "ready" state. Spry will automatically swap in the correct markup as the region's state changes. Added ordered processing of spry: attributes to allow combined use to reduce the need for using wrapper nodes to add logic. You can see an example here. Added Spry.Data.Region.debug variable. When set to true, it allows developers to see what the final template for the region looks like, as well as the markup that is being generated for each region. You can see an example here. Accordion Widget Moved SpryAccordion.js into widgets/accordion directory, along with a reference HTML sample and CSS file. Added support for keyboard navigation. Re-wrote parts of the PanelAnimator to allow for rapid switching between panels via keyboard navigation. Integrated patches from the community: Added keepSorted constructor option to the Data Set to allow the sort order to be preserved between loads. Added new built-in data references: {ds_EvenOddRow} - Writes out "even" or "odd" based on the row index of the current row being processed. {ds_RowNumberPlus1} - Writes out the current row index pluse one. Misc Bug Fixes: Spry.Utils.createXMLHttpRequest creates more than one request for a single call on IE 6. Auto setup of Master/Detail between data sets fails if only POST data contains data refs. Sorting should sort all data, not just the result of a non-destructive filter. Spry.Data.DataSet.prototype.filterData bugs: "unfiltredData" typo causes data loss. filterFunc overriden instead of filterDataFunc. null arg removes data filter but doesn't re-apply an existing view filter. IE removes quotes around attribute values that contain a single data reference. Gallery Demo Cleaned up Spry code used by the select form element. Modified gallery.js to use the region observer callback to set the main image and select the first thumbnail instead of using timers. Added CSS workaround for IE "doubled margin" bug. RSS Reader Demo Added error and loading feedback with region region states. Changes for Spry PreRelease 1.1 - 2006/06/08: Switched to using namespaced attributes. Attributes are now of the form spry:*. The Spry namespace is defined by adding the the following attribute to the HTML tag of the document: xmlns:spry="http://ns.adobe.com/spry". Added support for the new spry:content attribute, which allows the replacement of static content with dynamic content when JavaScript is enabled. This allows pages to work in a non scripting environment. Added region state notification mechanism. Added Prototype's $() convenience function. Added support for descending and toggle sort. Added support for non-destructive filtering. Added data set load interval. Added built-in references: {ds_CurrentRowNumber} {ds_CurrentRowID} {ds_SortOrder} {ds_SortColumn} Filter callback functions now have the following args passed to them: function myFilterFunc(dataset, rowObj, rowNumber). Filter callback functions must now return the rowObj passed in, a new rowObj, or null. Added data set support for retrieving XML data via the POST method and specifying HTTP headers. Added a samples directory. It's pretty bare right now, but over time will contain examples of things asked most frequently in the forums. One of the more useful samples is the Data Set Explorer page. Misc bug fixes: Text data not stored entity encoded. Data reference values need to be escaped in JS expressions. RegExp object forces Spry.Data.Region.processDataRefString() to bail early in IE. Spry attributes still exist in generated region output. Data set column (node text value) missing when node has an attribute.
Copyright © 2006. Adobe Systems Incorporated. All rights reserved.