SACK: Simple Ajax Code Kit
Please subscribe to our RSS feed for new articles. We report on Wordpress news, themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. You can also receive updates from this blog via email if you want that method of notification.
The Simple Ajax Code Kit (SACK) is a javascript library that takes the hassle out of AJAX programming.
This could be especially useful to any WordPress Plugin authors out there that don’t want to spend time messing around with code that isn’t directly to do with their plugin. Implementation is as simple as three lines of code so it makes your code look a lot neater as well.
Key features are:
- Simple and light to implement.
- Addresses security issues that toolkits such as SAJAX have.
- Handles international strings (UTF-8).
Full documentation is available at the link above, and it will soon be part of other plugins such as WordPress: Touched. Enjoy, I hope you find it very useful.

(1 votes, average: 4 out of 5)











Comments RSS
Nice, Thanks!
I’ll be giving this a look for at least two projects.
[Reply]
Anton Olsen (5 comments.) — 05/9/2005 @ 12:15 pmI’ll be interested to see them
[Reply]
Greg (1 comments.) — 05/9/2005 @ 3:11 pm[...] tations of AJAX (still a funky term for me) I am going to be looking at this today. (Via Weblog Tools Collection.) [...]
Sam’s random musings » Simple Ajax Code Kit — 05/9/2005 @ 7:15 pm[...] k it out and bookmark it, in case you ever need to do some quick and simple ajaxing via Weblog tools collection This entry was po [...]
atog » Blog Archive » SACK. — 05/10/2005 @ 10:23 amSACK: Simple Ajax Code Kit
SACK: Simple Ajax Code…
SACK: Simple Ajax Code Kit — 06/13/2005 @ 3:05 amcash games
SACK: Simple Ajax Code…
Janna — 06/25/2005 @ 1:09 pmNomad Muvo MP3 Player Usb Flash Drive
SACK: Simple Ajax Code…
Lew Backed — 06/26/2005 @ 3:51 amThe only problem with SACK is, that it only supports UTF-8
[Reply]
Breci — 07/1/2005 @ 8:01 amI eat my last comment for breakfast. There is no problem with sack… The problem was with me using it. You have to set the right headers for script that loads in DIV and of course you have to convert passed variables from utf-8 to whatever encoding you want.
Example:
header(”Content-type: text/plain; charset=windows-1250″);
header(”Cache-Control: no-store, no-cache”);
$_POST[variable_name]=iconv(”utf-8″, “windows-1250″, $_POST[variable_name]);
[Reply]
Breci (1 comments.) — 07/4/2005 @ 7:11 amThat’s correct SACK only supports UTF-8 as JavaScript only encodes as latin-1 or UTF-8. Obviously to support anything other than english SACK had to use UTF-8.
Using iconv as Breci is doing is a perfect way to convert the UTF-8 data, if you need to, to another format (but unless you *need* to, try to use UTF).
[Reply]
Gregory Wild-Smith (7 comments.) — 07/4/2005 @ 5:46 pmBenassi Bros
SACK: Simple Ajax Code…
Alice Hollund — 07/5/2005 @ 7:46 amSACK: Simple Ajax Code Kit
SACK: Simple Ajax Code…
Metle Skanye — 07/24/2005 @ 6:25 amBlocking Trackback Spam Using WordPress 1.2
Every day I get a number of trackback spams that I have to delete manually as part of my morning email processing ritual…
AjaxBlog — 01/12/2006 @ 8:51 am[...] http://weblogtoolscollection.c.....-code-kit/ [...]
Check It » Hello world! — 08/24/2006 @ 3:03 am