New release of PAJAJ: PHP Asynchronous Javascript and JSON

New release of PAJAJ out on Freshmeat. Check it out, it even includes a nice PHP Google Maps interface tag. Hehehhehehe. :)


PAJAJ Information


What is the PAJAJ framework, it stands for (PHP Asynchronous Javascript
and JSON). It is a object oriented Ajax framework written in PHP5 for
development of event driven PHP web applications. The framework follows
5 basic principles:

  1. Simple:

    You do not have
    to be an expert at PHP, HTML, JavaScript, and CSS to use the framework.
    You can do most, if not all, your coding in PHP, and the framework will
    generate HTML, CSS, and JavaScript for you. There are object for most
    of the HTML element, with method to manage common task, like updating
    the content of a Div or items in a forms Select pull down. A lot of the
    other frames include a simple example that is anything but simple. For
    my simple example I have been asked where the rest of the code is!

  2. Develop how you want:

    the framework supports 3 different development models: i. the developer
    develops the whole application and interface in PHP, since the
    framework knows about HTML elements you want to interact with, i.e.
    there are objects for Select, Div, Table with instances with unique
    IDs; it is easy to have the framework generate simple html and CSS for
    you. ii. A designer generate a pretty but dump page, and you then hook
    events to it to make it a real application (see Last Binding of Event
    below) iii. You design an interface as a template (example Smarty), and
    have the framework make html, CSS, Javascript that you pore into the

  3. Event Driving:

    I would rather have events delivered to the back-end, and decide there
    what actions to take then to write a lot of JavaScript in the
    front-end. What happens after an event?:

    1. The front-end gather information about the state of the page
    2. The back-end see if there is an event handler registered for this event
    3. If there is a registered event handler, it is call with the information from step i.
    4. After processing data is return back, if any, to page for processing:

    When an event happens there are 3 action that can be taken:

    1. Preprocessor Action: example setting a spinning hour glass gif, to tell the use that something is happening.
    2. Postprocessor Action: do something standard with the data that comes back, like update a div.
    3. Back-end delivers code to front-end: have the back-end tell the front-end what it want to do, or message the user.
  4. Late Binding of Events:

    The pages HTML does not need to changed event and there logic (event
    handlers) are bound at run time. So your wed designer could delivery a
    pretty, but dump from, and without changes to the HTML you can make it
    into a AJAX enabled application. This make for simpler markup and an
    easier separation of design and code.

  5. Object Oriented:

    There are not only objects for the Ajax plumbing, but for page elements
    that you are interacting with. The page element objects have method to
    make this interact easier to program.

Go to PAJAJ – GPL PHP JSON / AJAX library

3 Responses to New release of PAJAJ: PHP Asynchronous Javascript and JSON
  1. mike
    April 13, 2006 | 10:26 pm

    if you need to find html tools or JavaScript tools

  2. Anton
    April 6, 2006 | 2:26 pm

    I want mp3 player. What will advise?

  3. […] Leo en Ajax Blog que ya existe una nueva versión (0.4) de PAJAJ en Freshmeat. […]