( ! ) Warning: session_start(): open(/var/lib/php/session/sess_pf5vn6uj2dqknmui34ebq365l3, O_RDWR) failed: Permission denied (13) in /var/www/html/xajaxproject.org/live/index.php on line 160
Call Stack
#TimeMemoryFunctionLocation
10.0020491624{main}( )../index.php:0
20.0020492288ccdsFrontend::getInstance( )../index.php:1215
30.0020492520ccdsFrontend->__construct( )../index.php:77
40.02553775872session_start ( )../index.php:160
xajax PHP Class Library- The easiest way to develop asynchronous Ajax applications with PHP

xajax is easy! Just include xajax, register
a function (or an object or class method)...

<?php
include './xajax/xajax_core/xajax.inc.php';

$xajax = new xajax();

$xajax->register(XAJAX_FUNCTION, 'doAdd');
$xajax->register(XAJAX_FUNCTION, 'doReset');

$xajax->processRequest();

function doAdd($a, $b)
{
    $response = new xajaxResponse();
    $response->assign('answer', 'innerHTML', $a + $b);
    $response->assign('reset', 'style.display', 'block');
    return $response;
}

function doReset()
{
    $response = new xajaxResponse();
    $response->clear('answer', 'innerHTML');
    $response->assign('reset', 'style.display', 'none');
    return $response;
}
then add a call to the function in your HTML or javascript...

<form action="#" method="post" onsubmit="return false;">
  <input type="button" onclick="xajax_doAdd(10,600);" id="btnAdd" value="Click Me" />
  <input type="button" onclick="xajax_doReset();" id="btnReset" value="Reset" />
  <p id="answer"></p>
</form>
 
then see the result in the browser instantly!

Try it now:
Want to learn more about xajax?
See the tutorial...



Latest Development Blog Posts

04
2012

Xajax is moving to GitHub!

Good news everyone,

you might or might not have expected it, but the Xajax Crew is back!

We know a lot of time has passed and a couple of you have moved on, thinking
Xajax was dead, but it's not!

Read more | 8 Comments »



09
2010

Xajaxproject.org has been stolen *update*

When you'r reading this you probably found our new url on Google or another website. Unfortunately our domain xajaxproject.org has been hijacked on Friday 2010/09/17.

Read more | 11 Comments »



09
2010

Xajax 0.6 beta1

We are happy to announce the Beta1 release of Xajax 0.6. This releases focusses primarily on PHP 5.3 compatibility and performance improvements. We removed all legacy functions and classes from Xajax 0.5 and added JSON support for requests as well as responses.

Read more | 0 Comments »






XAJAX on SourceForge.net
Support this project Valid XHTML 1.0 Transitional