Ajax data two-way data binding strategies?

后端 未结 3 1582

I\'d like to 1) Draw create form fields and populate them with data from javascript objects 2) Update those backing objects whenever the value of the form field changes

相关标签:
3条回答
  • 2021-02-06 16:11

    DataBind - a template plugin for jQuery. The library has a method unbinddata(), which collects the data back to json-array.

    Unfortunately, the library works only with form inputs.

    If you made some solution, can I see it?

    0 讨论(0)
  • 2021-02-06 16:15

    Microsoft has a proposal for an enhancement to jQuery core that implements decently reach data binding including a two binding (source to target, and target to source).

    They call it Data Linking - which is odd since the name of this concept in all other MS technologies (WinForms, WPF, WebForms, etc...) is DataBinding.

    Link to the MS Proposal

    0 讨论(0)
  • 2021-02-06 16:21

    There are tons of libraries out there to achieve what you want.

    For starters, you can use DWR to get the Ajax functionality. The method that gets triggered for the form field's onChange event should make a DWR call to the corresponding backing object

    Hope this helps!

    0 讨论(0)
提交回复
热议问题