0

I'm looking for something like Flex's ArrayCollection and ArrayList; a lightweight wrapper around JavaScript's Array that supports data binding to do something (ie. call a function) on data change.

3 Answers 3

3

Take a look at jQXB Expression Binder. It does exacly what you need, binding capabilities, templating and messaging. http://www.jqxb.altervista.org

Sign up to request clarification or add additional context in comments.

Comments

0

I don't think that javascript has any similar functionality. I believe the best solution would be a function that adds or updates an array and runs other functions from within that like rerender the list or page.

Comments

0

Backbone.js Collections is a very popular implementation of this. Many of the libraries covered in TodoMVC also have something like evented collections. Unfortunately they do more than just this one thing.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.