Skip to content

Form that submits automatically the data as ajax call

License

Notifications You must be signed in to change notification settings

pihh/auto-ajax-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Form that submits automatically the data as ajax call

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published