Skip to content

A truly simple javascript "framework" to ajaxify your web without pain

Notifications You must be signed in to change notification settings

deigote/ajaxify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

ajaxify

Description

A teeny tiny javascript framework to ajaxify all your links and forms without much suffering

Dependencies

Available in

Usage

  • Ajaxify all "remove item" forms in a list of items (using a gsp render engine, that's why you see those ${...})

    ajaxifyLink( "#show-list-${listInstance.id} form.remove-item-form", "#show-list-${listInstance.id}", "action", "submit", "POST");

  • Ajaxify all relative links and forms so they update a div with id content .

    ajaxifyLink('a[href^="/"]', '#content'); ajaxifyLink('form[action^="/"]', '#content', 'action', 'submit', 'POST');

A Grails example on how to automatically ajaxify your whole webapp by putting the last example at the end of each HTTP response can be found in http://stackoverflow.com/questions/8736277/grails-resources-plugin-and-ajax-loaded-javascript/16354603#answer-16354603

About

A truly simple javascript "framework" to ajaxify your web without pain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published