Cjax Framework


Fire Ajax request on load & do other actions

Examples

PHP
<?php 

$ajax
->call("ajax.php?ajax_request/on_the_fly");

?>



Controller:
PHP
<?php 

class controller_ajax_request {

    function 
on_the_fly()
    {
        
$ajax CJAX::getInstance();

        
$ajax->update('container','This text was updated through ajax...');

        
$ajax->wait(2);

        
$ajax->update('container2','This text too...');

        
$ajax->wait(3);

        
$ajax->update('container2','Updated...');
    }
}

?>

Try it





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

CodeIgniter  ·  Copyright © 2006 - 2012  ·  Cjax

\