Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 479 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 479 Bytes

jquery-ajax-it

A lightweight Ajax framework that simplifies ajax requests with the help of HTML 5 data attributes.

My Form:

<div class="container">
    <form class="ajax" action="/api/test" method="post" data-cb="Namespace/testcb">
        <input type="submit"/>
    </form>
</div>

My Callback

Namespace:
  testcb: (isSuccess, data) ->
    alert(isSuccess)

Ajax it!

$('.container').ajaxIt()