Cajax Component in CakeForge May 11, 2006
Posted by rossoft in CakePHP.trackback
-
Now it’s packaged in http://cakeforge.org/snippet/detail.php?type=package&id=13
Also all the files and an example can be found at
http://www.ros-soft.net/otros/cakephp_blog/cajax_test.tgzUncompress in the root dir of a new cake installation then go to the browser http://your_cake_location/cajax_test/
Cool.
Is it PHP5 only? because I got this message Parse error: parse error, unexpected T_OBJECT_OPERATOR in C:\apache2triad\htdocs\cajax\app\controllers\components\cajax.php on line 80
(i feel so much like a troll lately)
I hope not. I have the same error. If someone can help. Thanx
this is object chaining problem,
i fixed with :
$tmpquery = $this->e(’#’ . CAJAX_CONTAINER);
$this->Head->register_jsblock(
$this->on_load( $this->new_element(’document.body’,'div’,CAJAX_CONTAINER,array(),false)
.
$tmpquery->hide(false)
,false)
);
same chaining fix in sample file test5.thtml line 5
@christophe: I think that this is solved in version 2.1 in cakeforge
I’ve done this workaround for PHP4:
Replace by:
$tmpquery = $this->e(’#’ . CAJAX_CONTAINER);
$bleh1 = $this->new_element(’document.body’,'div’,CAJAX_CONTAINER,array(),false);
$bleh2 = $tmpquery->hide(false);
$bleh = $bleh1.$bleh2;
$this->Head->register_jsblock($this->on_load($bleh,false));
@tompouce: thanks, but that’s for a old version of cajax. it’s solved in cakeforge last version
[...] CakePHPには標準ではありませんが、Cajax を使うとRJSぽいことができます。 [...]