Tuesday, May 31st, 2005
Toolkit: Toxic for PHP
<>p>Danne Lundqvist has released the first version of hsi Ajax toolkit for rich clients. It is lightweight and features automatic form validation and fields can be bound to method calls. Currently there is only a PHP backend available.Example
myUser.bindParams(‘save’, ‘User_id’, ‘User_login’, ‘User_firstname’,
‘User_lastname’, ‘User_email’, ‘User_group’, ‘User_age’);
…
myUser.execute(‘save’);
PHP piece
<?php
// The PHP code
class User {
public function save($id, $login, $firstname, $lastname,
$email, $group, $age)
{
if ($id == null || $id == 0)
{
// Code to save user
return $newUserId;
}
throw new Exception("Updating a user is not implemented");
}
}?>
Read about the release








[...] Ajaxian 2005 MayComing from a world such as Java, developers sometimes wish they had rich threading constructs. The f(m) project has gone ahead and implemented a threading construct / library for you to use. [...]