Most useful techniques for two way data binding with js
- by Perpetualcoder
With abundance of web services and client side templating features of jQuery and likes, creating mashups or sites consuming a multitude of web services and posting data back to these services is becoming exceedingly popular. For a page of decent size with this kind of architecture, say a dashboard. What are the useful techniques of maintaining this client side state. In other words whats are some of the ways to do two way databinding?
Sample scenario:
Get Data From Service as JSON/XML
Display/Bind on UI
Capture User Input
Recreate request from the UI controls/html
Post Data To Service
Get Response and Rebind