Topic: what next...

Hello smile

Anybody knows where to is going xajax - unfortunately Authors of this great library "have not enough heart for their child".
Is there hope to see something new in this project except google ads on the main page ?

Best regards,
Artur

Re: what next...

Hello,

current state, everybody has a lot of work.
The going on of Xajax is currently under discussion.

Nobody will forget ;-)

Re: what next...

It is good to hear, that Xajax project is going to be alive again - I do not found such good library as Xajax for PHP enthusiasts big_smile - thank You very much Xajax Team and best regards smile

Re: what next...

Hey Artur,

I'm sorry for the huge delay but we'r back... and motivated to move on with our child smile

Re: what next...

q_no wrote:

Hey Artur,

I'm sorry for the huge delay but we'r back... and motivated to move on with our child smile

I am glad, about that smile
One of most urgent things is (in my mind) code refactoring for PHP 5.4 - current version of Xajax do not works with last version of PHP.

Best regards,
Artutr

Re: what next...

Artutr,

I use the current release of xajax with php 5.3.x and it seems to work ok.

Could you expand on the problem/s?

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: what next...

Ed,
   please take a look at "backward incompatible changes": http://uk3.php.net/manual/en/migration5 … atible.php

I do not know all problems of Xajax vs PHP 5.4 but I am sure about this one: "Call-time pass by reference has been removed":

xajax_core/legacy.inc.php
   Fatal error: Call-time pass-by-reference has been removed in /xajax/xajax_core/legacy.inc.php on line 40

Of course I can try to fix it myself but I can not say when it will happen - may be someone has fixed it already ?
In my code I am using array to pass reference as function argument.

Best regards,
Artur

Re: what next...

Artur,

I find this in the legacy.inc.php file:

    function registerExternalFunction($mFunction, $sInclude)
    {
        $xuf =& new xajaxUserFunction($mFunction, $sInclude); //Line 39 in my copy...
        $this->register(XAJAX_FUNCTION, $xuf);
    }

Using PHP 5.3 it complained about the reference being deprecated.

So I changed it to this:

    function registerExternalFunction($mFunction, $sInclude)
    {
        $xuf = new xajaxUserFunction($mFunction, $sInclude); //<< note the cjhange here.
        $this->register(XAJAX_FUNCTION, $xuf);
    }

And it stops complaining...

This is the only place it ocurres in the file...

I have not encountered this 'cause I don't the legacy version.

I can't seem to get the legacy version to work...

<?php
include_once("xajax/xajax_core/xajax.inc.php");
include_once("xajax/xajax_core/legacy.inc.php");
$xajax = new legacyXajax();
$xajax->configure('javascript URI', 'xajax/');

function hello()
{
  $resp = new legacyXajax();
  $resp->alert('Hello');
  return $resp;
}

$xajax->register(XAJAX_FUNCTION,'hello');
$xajax->processRequest();
?>
<html>
<head>
<?php $xajax->printJavascript(); ?>
</head>
<body>
<input type="button" value="Say Hi" onclick="xajax_hello()" />
</body>
</html>

It tells me:

Fatal error: Class 'xajaxResponse' not found in C:\wamp\www\Truck Loader\xajax\xajax_core\legacy.inc.php on line 2
I tried including the response.inc.php file and it complained about redefining xajaxResponse...
What am I doing wrong?

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.