What's new? | Help | Directory | Sign in
Google
php-ajax
Framework for write ajax applications
  
  
  
  
    
Search
for
Updated Jan 20, 2008 by saddor
Labels: Featured
Version1_1  

Introduction

PHPAJAX has upgrade to a new version toward an easiest project.

Details

Here are the most important details of the new version:

How to upgrade

Old version

class foo extends phpajax {
    function inputs() {
        aread("input1");
    }
}

class bar extends phpajax {
    function inputs() {
        aread("input2");
        aread("input3");
    }
}

New Version

class foo extends phpajax {
    var $inputs="input1";
   
}

class bar extends phpajax {
    var $inputs=array("input2","input3");   
}

New feature, the hotkey

You can trigger action when a key (or group of keys) is pressed. The group of keys is control, shift or alt with another key.

class foo extends phpajax {
    var $inputs="input1";
    var $hotkeys="b";
   
}

class bar extends phpajax {
    var $inputs=array("input2","input3");   
    var $hotkeys=array("a","shift-b","ctrl-x");
}

Sign in to add a comment