Simple AJAX Code-Kit (SACK)

SACK is exactly what it says it is: A simple set of code to allow you to put AJAX into your webpages with none of the fuss or overhead of other packages. Just AJAX, just simple.

Current SACK Version: 1.6

This is the main page for SACK and will be, over the next little while, updated with reasources and tutorials about how to use SACK to enhance your webpages. Maybe it will even give you some ideas! If you come up with something special please let me know, Id love to hear from people that are using my SACK in their projects or products. The same goes for any suggestions, please tell me how I can make this better.

SACK 1.2 is included with WordPress 2.0, which makes me happy beyond words, newer versions of SACK should work with no problems in WordPress.

Code Documentation

Full documentation of the classes methods and variables is available here. However this information is included in the zip package as well. It should be more than you need, but if you have any trouble then please let me know: The aim is to make everything simple, so if you are confused I need to fix something.

Example Code

A basic demonstration of how you can use SACK to communicate with a PHP page is included in the full zip distribution. Remember: it needs to be run on a webserver to work correctly.

Software Licence

The full licence text follows, basically its a very permissive open source licence:

Note: This is a modified version of the X11 Licence (commonly known as the MIT licence). The modifications relate to including not only the copyright notice, as per the original X11, but also the authors URL. This is a trivial modification, and does not affect any other part of the licence.

COPYRIGHT AND PERMISSION NOTICE for Simple AJAX Code Kit (SACK).

Copyright © 2005 Gregory Wild-Smith
Authors Website: http://www.twilightuniverse.com/

All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s), authors website url, and this permission notice appear in all copies of the Software and that the above copyright notice(s), authors url, and this permission notice appear in supporting documentation.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.

The Code

There are two versions you can download, a full pack (which includes the docs and demo code), or just the JavaScript.

If you have produced software with SACK please let me know, Id love to be able to compile a list of applications that use it. If you do want to see your site up here then shoot me an email with the url of your site, ideally a link to where it is used, and a description of what you did with it.

Start your keyboards