Cjax Framework


Ever tried to redirect a page from the server, while you are in an ajax call? well, you can't, oh wait - erase that, with Cjax yes you can.
Here is where this function is most useful. You can use it and it will redirect from the server or from anywhere you call it. If you just call it without parameters, it will refresh the page you are on.


You can redirect to a different url, or site, by using the location function.

Examples

Redirect to a new url.
PHP
<?php 

$ajax
->location('http://cjax.sourceforge.net/');


?>

Refresh page.
PHP
<?php 

$ajax
->location();


?>


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

CodeIgniter  ·  Copyright © 2006 - 2012  ·  Cjax