Tuesday, May 31st, 2005

Toolkit: Toxic for PHP

Category: Ajax, PHP, Toolkit

<>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

More info

Download

Related Content:

1 Comment »

Comments feed

[...] 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. [...]

Pingback by Non Surgical Facial Rejuvenation » Blog Archive » “cosmetic acupuncture” - HyperThreading — June 11, 2006

Leave a comment

You must be logged in to post a comment.