Dribbling Filter.js
Play framework with client-side JS filtering of JSON objects and rendering HTML snippets via jQuery.
In this post we are integrating Filter.js with Play Framework for reactive data streaming using Ajax and filtering data on client side using Filter.js magic.
Filter.js is client-side JSON objects filter to show/hide HTML elements. Multiple filter criteria can be specified and used in conjunction with each other.
Mustache.js is a logic-less template syntax. It can be used for HTML, config files, source code – anything. It works by expanding tags in a template using values provided in a hash or object.
Instructions :-
- The Github code for the project is at : playing-json-object-filter-js
- Clone the project into local system
- To run the Play framework 2.3.3, you need JDK 6 or later
- Install Typesafe Activator if you do not have it already. You can get it from here: download
- Execute
activator clean compile
to build the product - Execute
activator run
to execute the product - playing-json-object-filter-js should now be accessible at localhost:9000
References :-
This is the start, from next week onwards we would be working on this application to make it grow. We would look at how we can make it more functional, then we would be adding more modules to it together. If you have any changes then feel free to send in pull requests and we would do the merges :) Stay tuned.
Filed under: AJAX, Bootstrap, JavaScript, jQuery, Play Framework, Reactive, Scala, Web Tagged: Ajax, Big Data, Caching, Clean code, Code Quality, Javascript, JSON, Play framework, scala Image may be NSFW.
Clik here to view.

Clik here to view.

Clik here to view.

Clik here to view.

Clik here to view.

Clik here to view.

Clik here to view.

Clik here to view.
