Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

testcore-labs/asyncform.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

asyncform.js

a simple way of doing forms, asynchronously.

note: responsejs has to be a global function like one you create yourself:

function test(responsedata, lawl) {
console.log("result for " + lawl + ": " + responsedata);
}

example:

<form type="asyncform" method="GET" action="/api/test" responsehtml="#element" headers='{"test": true}' responsejs="test("you")">
  <input type="text" name="text" placeholder="inputone">
  <input type="text" name="tssext" placeholder="inputone">
  <input type="text" name="tsssssext" placeholder="inputone">
  <button type="submit">submit</button>
</form>

and thats it, enjoy.

also to directly include the js file into your html:

<script src="https://cdn.jsdelivr.net/gh/testcore-labs/asyncform.js@v1.4.1/asyncform.js"></script>

About

a simple way of doing forms, asynchronously.

Resources

License

Stars

Watchers

Forks

Packages

No packages published