Apr 26, 2013

AJAX and the NetBurner Round 3

Running Ajax in an embedded system: seems like I'm getting in a rut of revisiting this topic every two years. Round two was in December of 2009. This time around I removed both the Prototype library and a lot of the custom JavaScript I had written. Those got replaced with jQuery which seems to be winning the Ajax library wars.

I'm not going to go into the same level of detail with the NetBurner function callbacks and the lower level Ajax details. It really hasn't changed much and if you want to know about that you can watch the video and read the Round two blog post.

In addition to updating to  jQuery, the real motivation for round 3 was the Knockout library.  Knockout provides support for two-way data-binding, and makes it very easy to implement the MVVM design pattern. If you've ever programmed in C# and WPF you know just how nice and maintainable this pattern can be. In addition to data-binding, Knockout combines some data flow and template techniques that make displaying large amounts of data extremely easy.

This version of the demo takes a single page application approach. I've split the Ajax content over the first two pages and put some About information on the third page. Below is a 4 minute video demo with the web server running in the NetBurner 54441x development board.   Source code is available on the NetBurner forums.

Demo of Syncor's 3rdVersion of AJAX for the NetBurner

About Me

My photo
Tod Gentille (@todgentille) is now a Curriculum Director for Pluralsight. He's been programming professionally since well before you were born and was a software consultant for most of his career. He's also a father, husband, drummer, and windsurfer. He wants to be a guitar player but he just hasn't got the chops for it.