Ajax Agent

November 17th, 2007 Arsen Posted in Patterns - PHP |

Ajax Agent is very simple to use Ajax framework created by two Ajax pros (Steve Hemmady, the Lead Architect behind award winning Onepage Portal Server (now Sybase Enterprise Portal) & Anuta Udyawar, a core engineer behind the Content Express For Microsoft Commerce Server).

  • Aims to make Ajax work as simple as possible. Based on KISS (keep it simple stupid)
  • The PHP version offers three steps to get started with the framework:
  include_once('agent.php');
  $agent->init();
  agent.call('url','server_function', 'client_handle', param1, param2, ...);

The first line is declared to include the Ajax Agent library, initialize the agent framework & instantiate the server side ‘Agent’. The second line instantiates the client side ‘Agent’. The third line which runs on the client side within the JavaScript browser environment, uses the client side ‘Agent’ to directly call the server function asynchronously.

  • Supports complex data types like associated arrays & objects
  • Makes use of JSON (JavaScript Object Notation) for data interchange format
  • Open source framework/toolkit licensed under the GNU General Public License
  • Developed by Steve Hemmady & Anuta Udyawar

Leave a Reply