Rich Ajax Application Framework

The Page Request Cycle

When a client makes a request to view a web page, the framework will load your Page-Controller logic and allow you to load and process your html views using simple css selectors (for example #id, .classname, etc). Once processing is completed, a reply is sent back to the client that made the request. The replied text contains your html code and may include embedded javascript/css stylesheet.

If a request was made via an ajax call, then a JSON object is returned to the client. The returned JSON object may include the action scripts (a mixed of jQuery and JavaScripts) needed to carry out a specific task within the client's web browser.

Synchronous Page Request Execution

Asynchronous (AJAX) Page Request Execution

Data Reset handler

Page event handler are prefixed with an "_" as shown in the example below:

<?php
    require_once('raxan/pdi/autostart.php');

    class NewPage extends RaxanWebPage {

        protected function _init() {
            $this->append('* This is the init handler <br />');
        }

        protected function _load() {
            $this->append('* This is the load handler <br />');
        }

        protected function _prerender() {
            $this->append('* This is the prerender handler <br />');
        }

    }
?>

Connecting The Dots >>