News for hackers. Stuff that matters.
Re:Knockout: JS library for rich UIs, declarative bindings, ... by AlexC04 on Wednesday October 20, 2010 @08:58AM (#1810981)
WOW! :) Automatic refresh? I can't tell you the number of times I've had to abandon fancy Ajax because of the need to refresh the DOM (checkboxes that were 'deleted' still existed in the form submission... yes I'm sure there's a way to do it, but there's a balance between time and ... oh nevermind)

Also, I really like the way that bindings are done.

data-bind="click: foo();"

is so much nicer than

$(':checked').each(function(bar){/* do foo; */}).bind(this);

or whatever it was I was doing in jQuery the other day. I'm probably mixing up my prototype and jquery syntax there. :)

Re:Knockout: JS library for rich UIs, declarative bindings, ... by drivebyacct2 on Wednesday October 20, 2010 @11:02AM (#1811450)
If you want this, you should check out the new data binding in jQuery. It enables it in a cleaner fashion (no JS in HTML attributes) and accomplishes the same goal.