🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Miranda.js is a lightweight jQuery plugin that makes it possible to convert JSON objects into HTML data via AJAX GET or POST requests.

json

Documentation

Miranda-js

A jquery plugin for easy integration between JSON and HTML. Maintaining harmony and peace between interface programmers and server programmers when using REST services.

  • jQuery support: 1.7+

For credits and examples, see: http://www.fabianomiranda.com.br/miranda-js/

For downloads, see: http://www.fabianomiranda.com.br/miranda-js/miranda-js.zip

Documentation

The attribute name of the list or object must be the name of the key in its HTML code between [[]].  Example: {KEY:"Miranda-JS"} <h1>[[KEY]]</h1> 

Simple Array or Object integration

<div id="box">     <h1>[[name]]</h1>     <h2>[[lastname]]</h2> </div> <script> var list = {"name": "Fabiano", "lastname": "Miranda"}; $("#box").mirandajs(list); </script> 

Simple Object list integration

<div id="box">     <h1>[[name]]</h1>     <h2>[[lastname]]</h2> </div> <script> var list = [{"name": "Fabiano", "lastname": "Miranda"},{"name": "Kaio", "lastname": "Silva"}]; $("#box").mirandajs(list); </script> 

Credits


You May Also Like