post-page

SACK: Simple Ajax Code Kit

14
responses
by
 
on
May 9th, 2005
in
Code, Cool Scripts, Weblog Add-Ons, WordPress Plugins

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.

heading
14
Responses

 

Comments

  1. Anton Olsen (5 comments.) says:

    Nice, Thanks!

    I’ll be giving this a look for at least two projects.

  2. Greg (1 comments.) says:

    I’ll be interested to see them :)

  3. Breci says:

    The only problem with SACK is, that it only supports UTF-8

  4. Breci (1 comments.) says:

    I 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]);

  5. Gregory Wild-Smith (7 comments.) says:

    That’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).



Trackbacks/Pingbacks

  1. [...] tations of AJAX (still a funky term for me) I am going to be looking at this today. (Via Weblog Tools Collection.) [...]

  2. [...] 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 [...]

  3. SACK: Simple Ajax Code Kit

    SACK: Simple Ajax Code…

  4. Janna says:

    cash games

    SACK: Simple Ajax Code…

  5. Lew Backed says:

    Nomad Muvo MP3 Player Usb Flash Drive

    SACK: Simple Ajax Code…

  6. Benassi Bros

    SACK: Simple Ajax Code…

  7. Metle Skanye says:

    SACK: Simple Ajax Code Kit

    SACK: Simple Ajax Code…

  8. AjaxBlog says:

    Blocking 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…

Obviously Powered by WordPress. © 2003-2013

page counter
css.php