Welcome Guest, Not a member yet? Register   Sign In
Cjax 5.9 RC (CodeIgniter Ajax Framework)- Released!
#14

(This post was last modified: 08-30-2016, 07:56 PM by phpajax.)

(08-29-2016, 08:39 AM)doomie22 Wrote: This looks amazing.

One question, does it have the ability of updating a figure on a page without reloading (e.g. the live right now on google analytics)?

Thanks,

Doomie


Yes. You should be able to. This is just a generic example but there are different ways to update items on the page:

PHP Code:
$ajax->click('element_id_to_click_on' $ajax->call(array('update','figure'))); 


Code:
<div id='container_id'></div>
<a href='#'  id='element_id_to_click_on'> Update </a>



in your ajax controller


PHP Code:
class Update {
    public function figure() 
    {

         $ajax->ajax();

         $ajax->container_id $content_here;
     }


Reply


Messages In This Thread
RE: Cjax 5.9 RC (CodeIgniter Ajax Framework)- Released! - by phpajax - 08-29-2016, 12:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB