Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 942 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 942 Bytes

auto-ajax-form

Form that is submited via ajax call without the programmer having to code the entire ajax request.

Example:

Submit <script> var callback = function(data){ console.log(data); } var callback2 = function(data){ console.log('second callback'); } </script>

Code explained:

  • Each form has to have an individual id ( currently working on removing this feature ).
  • If ajax="true" it will send the request via ajax
  • Code injections: Currently you can inject success="function(data)" (runs a function with the data of the ajax call ), complete="function(data)"

Sugestions and improvements: