Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Action Boy is jquery plugin that provides platform independent unobtrusive style for links and forms
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples/expressjs
src
.gitignore
README

README

Action Boy is jquery plugin that provides platform independent unobtrusive style for links and forms.

actionlink.jade

a#link1(href='/actionlink', data-method='post', data-type='json') foo

script(type='text/javascript')
  $(function() {
    $('#link1').click(function(e){
      $(this).invoke().success(function(data){

      });
      e.preventDefault()
    });
  });

forms.jade

form#form1(action='/form', method='post')
  input(type="text",name="user[name]")
  input(type="text",name="user[email]")
  input(type='submit', value='Submit')

script(type='text/javascript')
  $(function() {
    $('#form1').submit(function(e){
      $(this).invoke().success(function(data){

      });
      e.preventDefault()
    });
  });

Something went wrong with that request. Please try again.