Skip to content

ruvents/ruwork-frujax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frujax

A JavaScript library to send and process AJAX requests with ease.

Installation

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="frujax.js"></script>

Usage

$('.frujax-btn').frujax({
    url: '/ajax',
    target: '#container'
});

Or you can use data-frujax attribute to quickly setup frujax on any element.

<button data-frujax='{"url": "/ajax", "target": "#container"}'>Action!</button>

Clicking the link will load the contents of the /ajax page into the #container element.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published