Skip to content

my-tiny-experiments/ajaxer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Ajaxer as axer;

simplify ajax request in forms and anchors, just by adding axer attributes

Install

  1. git clone https://github.com/hassanalisalem/ajaxer.git

  2. Add <script src="src/ajaxer.js"></script> at the end of the file

Usage

  • Add axer to the form or anchor eg: <form axer ...>.
  • axer attributes are :
    axer-action specify where to send the form data.
    axer-action-result specify where to put the response (it should take an id).
    axer-loading specify what is the id of the loading form.
    axer-method the method of your form.
    axer-redirect where to redirect the form or anchor after finish proccessing.
    axer-before the function name to call before start proccessing.
    axer-after function name to call after finishing proccessing.

About

Ajaxfy your forms and urls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published