Caper.js
Easier using ajax function in JAVASCRIPT
Install
$ npm install caperajaxjs
Download it
github.com/WMXPY/Caper.js.git
Source it
<script src="caperAjax.js"></script>
And Use it
Ca$.post({
url: './demo.php',
data: {
demo: 'test',
two: 'testtwo'
},
success: function (reply) {
document.getElementById('test').innerHTML = reply;
}
});
Ca$.get({
url: './demo.php',
data: {
demo: 'test',
two: 'testtwo'
},
success: function (reply) {
document.getElementById('test').innerHTML = reply;
}
})