My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
introduction  
Brief introduction to the Sajax library
Updated Apr 17, 2009 by kristian...@gmail.com

Introduction

The SAJAX library was developed by ModernMethod. It is very small compared to other libraries (less than 10KB), yet remains extremely powerful and flexible. The original source for this can be found at http://www.modernmethod.com/sajax/. This project contains my personal changes to the Sajax library. This means you should use it at your own risk only after carefully reviewing the changes and testing it yourself.

Details

This offshoot of Sajax includes the following enhancements:

  • The ability to export object methods. Example:
sajax_export('NormalMethod', 'WebServices::AddPhotoAlbum', 'WebServices::DeletePhotoAlbum');
  • The ability to pass JavaScript objects to your Sajax JavaScript stubs:
<input type="button" onclick="x_WebServices__AddPhotoAlbum(this.form, cb_WebServices__AddPhotoAlbum)">
This button passes it's parent form to the stub for WebServices :: AddPhotoAlbum.
  • Takes advantage of PHP's built-in json_encode() and json_decode()

Sign in to add a comment
Powered by Google Project Hosting