From Ape Wiki

(Redirected from JSF General Structure)
Jump to: navigation, search

Contents

[edit] Introduction to APE Javascript framework

The APE JavaScript Framework is divided in two distinct parts: the "Client" and the "Core".

[edit] Introduction

[edit] Client

The JSF Client is a small JavaScript script. Its aim is to load the Core and allow your JavaScript application to interact with Core.

There are two JavaScript clients for APE JSF.

  • One especially for MooTools (to take advantage of MooTools class)
  • One for any other framework

If you use mootools on your website, choose apeClientMoo, otherwise use apeClientJS

[edit] Core

The JSF Core handles all the interactions with the server: send/receive data, session management, transport method, ... It does all the hard work for you ;-)

APE Core is written using MooTools, as the core is executed inside an iframe the use of mootools doesn't conflict with framework you use on your website/application. We focused on providing a small javascript Core ~5KB (gzipped) with mootools bundled in it.

[edit] General working

The APE JSF Client creates an iframe, and loads the Core on it. Client and Core communicate with an event system. The Core sends Events depending on received RAWS and sent Commands. It is possible to add a callback function on each event transmitted by the Core.