Hi,
Since i am primary a C# developer, and unfortunately not a js guru i
cant give you a complete solution that properly extend chain etc., but
looking at the "Default Builder - Automatic Data filler" section of
Chain.js i think something along the lines of:
for (var i in data) {
self.find('> .' + i + ', *:not(.chain-element) .' + i)
.each(function() {
var match = $(this);
if (match.filter(':input').length) {
data[i] = match.val(); //just reversing the
assignment.
}
});
}
might do the trick :)
i believe that only getting the data when needed (if needed) would
also be more efficient than adding event listeners for potentially a
large number of properties.
but as i said i am no js guru ;)
/Micke