Cjax Framework


Basically send an ajax request to the server every time you type something..

Examples

PHP
<?php 

    $ajax
->keyup("text1"$ajax->call("ajax.php?keyup_update/update/|text1|"));
?>
Controller:
PHP
<?php 

class Keyup_update {

    function 
update($text)
    {
        
$ajax ajax();

        
//update page title
        
$ajax->document('title'$text);

        
//update div
        
$ajax->div_response $text;
    }
}
);
?>

Try it



Type Something...


Previous Topic:  Previous Class    ·   Top of Page   ·   Demos Home   ·  

CodeIgniter  ·  Copyright © 2006 - 2012  ·  Cjax