views:

619

answers:

6

We use Sajax for adding small Ajax code to sites. After running into a problem and doing some digging, it seems the library hasn't been updated since 2005.

I've appreciated Sajax for being lightweight, easy to use, and easy to install (just include the file in PHP).

So, on the LAMP stack, if you have used Sajax before, what would you upgrade to? Ease of use is key since some semi-programmer web developers use the code too.

I know a lot of people would say jQuery, but is that as simple as Sajax?

+1  A: 

Sounds a lot like xajax

meouw
+1  A: 

Correct me if I'm wrong but Sajax is a PHP library and jQuery is a javascript library. Just felt like that distinction needs to be made.

At our company we use jQuery and I think it's absolutely fantastic. Wouldn't trade it for anything else. But I would advise you to try any of the other many javascript libraries (Prototype, MooTools, YUI) and find out which one works for you.

smack0007
Sajax is an open source tool to make programming websites using the Ajax framework — also known as XMLHTTPRequest or remote scripting — as easy as possible. Sajax makes it easy to call PHP, Perl, Python, ASP or Cold Fusion functions from your webpages via JavaScript.
cgreeno
Not a PHP library....
cgreeno
+2  A: 

I would say it is easier:

Jquery

$.ajax({
  type: "GET",
  url: "test.js",
  dataType: "script"
});

 var html = $.ajax({
  url: "some.php",
  async: false
 }).responseText;

JQuery is a great tool with lots of examples, extensions and Add on's that allow you to do some pretty amazing things!

cgreeno
A: 

I recommend jQuery. It's much more straight forward that Sajax, which tries to be both end points for you. Besides, it can get messy with output buffering sometimes.

Hans
A: 

If you're looking for jQuery integration with PHP, there are some classes in the Zend Framework. See: http://framework.zend.com/manual/en/zendx.jquery.html

+1  A: 

Or you could use S2ajax: http://github.com/Fusion/s2ajax/tree/master

I just finally got around to pushing it to Github :)

Fusion