Skip to content
Cory House

Cory House

  • Blog
  • Courses
  • Training
  • Presentations
  • Appearances
  • About

Category Archives: Knockout

KnockoutJS: Maintain Input Focus While Tabbing and Rebinding

Single page applications pose a unique and interesting set of problems. Libraries that offer two-way binding like KnockoutJS and AngularJS make it trivial to completely redraw a screen with new data delivered from the server via AJAX calls. However, what … Read on...

Posted byCory HouseSeptember 27, 2013January 18, 2014Posted inJavaScript, KnockoutTags: CSS, JavaScript, Knockout, SPA

Serializing Knockout ViewModels to JSON: Quotes matter

The Knockout MVVM framework makes it dirt simple to serialize your ViewModels to JSON:

ko.toJSON(viewModel);

However, if you’re wondering why some observables aren’t being serialized, note that observables that are initialized empty aren’t serialized to JSON. So if your … Read on...

Posted byCory HouseApril 8, 2013April 8, 2013Posted inKnockoutTags: JavaScript, JSON, Knockout, MVVM, Serialization

About Cory

Cory HouseCory House is a React and JavaScript specialist. Cory is principal consultant at reactjsconsulting.com. I'm a Pluralsight author, a Microsoft MVP, and an international speaker. I believe in clean code, test-driven development, and responsive web UIs. I'm a retired wedding singer, lousy golfer, and lover of fine automobiles.

Pluralsight Author Page
My Pluralsight Courses

Cory House, © 2010 - 2020 Bitnative LLC