domAjax Download

DOWNLOAD/LIVE PREVIEW

domAjax Download

domAjax is a small HTML5 javascript library that enables any DOM ingredient to make ajax requests. It additionally has a easy templating engine that may simply bind returned json information to template attributes written in curly brackets. By default, any returned json object is handed by means of this micro templating engine which supplies you a extremely seamless ajax expertise.

domAjax removes the necessity so that you can code jQuery ajax requests which may simply get messy particularly on the subject of processing the returned JSON and manipulating the DOM so as to add any fetched information.

DOM nodes are configured utilizing data-ajax-* attributes and the domAjax library takes care of the remainder.
documentation accessible at https://googledrive.com/host/0B_GNvWPY1Rs1Z1RTbFFGWFBVRzg/index.html
// domAjax Template

<div id="posts" data-ajax-url="/posts/">
    <div class="single-post" data-ajax-repeat="posts">
        <span>{{writer.picture}}</span>
        <div>
            <span>Written by {{writer.identify}}</span>
            <span>Submitted {{dateCreated}}</span>
        </div>
        <div class="writeup">
            {{content material}}
        </div>
        <div class="feedback">
            {{feedback}}
        </div>
    </div>
</div>

DOWNLOAD/LIVE PREVIEW
Source

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.