I suggest you ...

jquery bindings for models and controlers out of the box

I'd like you to place a bigger bet on JQuery. I'd like eazy support for working with model data... such as $.mvc.model.firstname and $.mvs.controller.action(params).

68 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Ed DraperEd Draper shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • ChaoChao commented  ·   ·  Flag as inappropriate

        Not sure if it'll get added in the framework directly but you might want to look into KnockoutJS. What you need to do is:

        1. Reference Knockout and the Knockout-Mapping extension.
        2. In a script tag render the output from running your model through a javascript serialiser instance
        3. run that javascript object through knockout
        4. your model is now available via knockout in a manner very similar to the one your described.

        As a bonus knockout is also designed around jQuery Templates so there's ur moar jQuery :)

      Feedback and Knowledge Base