A little ajax handler
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
ajax.js
package-lock.json
package.json

README.md

ajax

A little ajax handler

Settings are required

jstiller.settings = {
  service: {
    frontend: '/',
  },
  path: {
    templates: 'templates',
  },
};
jstiller.modules.ajax.getTemplate('layerTemplate', function callback(receivedTemplate) {

});
jstiller.modules.ajax.getJSON('api.josestiller.de/articles', function callback(receivedArticles) {

});
var data = {
  title: 'title',
  subtitle: 'sub title',
  content: 'content',
};

jstiller.modules.ajax.post('api.josestiller.de/articles', data, function callback(receivedResponse) {

});