Giter VIP home page Giter VIP logo

ajax's Introduction

October AJAX Framework

This repository contains the AJAX framework of October CMS. If you want to build a website using October CMS, visit the main October CMS repository.

Installation outside October CMS

Your application can use the octobercms npm package to install the AJAX Framework as a module for build tools like webpack.

  1. Add the octobercms package to your application.
npm install --save octobercms
  1. Require and start the Framework in your JavaScript bundle.
import oc from 'octobercms';

// Make an AJAX request
oc.ajax('onSomething', { data: someVar });

// Serialize an element with the request
oc.request('.some-element', 'onSomething', { data: someVar });

jQuery Adapter

If jQuery is found, the traditional API can also be used.

// AJAX request with jQuery
$.request('onSomething', { data: someVar });

// Serialized request with jQuery
$('.some-element').request('onSomething', { data: someVar });

Documentation

Read the complete documentation on the October CMS website.

License

The October CMS platform is licensed software, see End User License Agreement (EULA) for more details.

ajax's People

Contributors

daftspunk avatar flusherdock1 avatar jacobdekeizer avatar metallizzer avatar octoberapp avatar samgeorges avatar samuell1 avatar tobias-kuendig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.