Skip to content

kgscialdone/ajaxial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ajaxial

Ajaxial is a single-file web library that embeds AJAX instructions directly in your HTML structure, allowing you to painlessly design client-server interactions without ever touching JavaScript yourself. With AJAX at your fingertips, the web becomes more powerful than all of Greece!

<!-- A form like this... -->
<form ajxl-path="/subscribe" ajxl-method="post" ajxl-swap="outerHTML">
  <input type="email" name="email" required />
  <button type="submit">Subscribe!</button>
</form>

<!-- ...can turn into this when submitted! -->
<p>Thank you for subscribing!</p>

Like what you see? Consider buying me a coffee 💜

Installation

You can download ajaxial.min.js from this repository and reference it locally, or retrieve it directly from a CDN like JSDelivr. Ajaxial will start working automatically, just by adding the script tag to your page.

<script src="https://cdn.jsdelivr.net/gh/kgscialdone/ajaxial@1.0.0/ajaxial.min.js"></script>

Usage

See the documentation for more information.

Contributing

Coming soon!

Sponsors

Thank you so much to these $5/mo+ sponsors for your support!