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

(08-18-2016, 08:22 PM)John_Betong Wrote:
(08-17-2016, 04:18 AM)phpajax Wrote: Update:
Cjax RC 2 has been released. Download Here.
What happened to http://cjaxboy.com?

I don't know that domain. I used to own a similar one though. Ajaxboy.com. I abandoned because I am not quite good at maintaining blogs.
Reply
#12

(This post was last modified: 08-19-2016, 05:18 AM by phpajax.)

(08-18-2016, 05:30 PM)PaulD Wrote: Hey thanks, but no it is fine. I got it. Great work still!

No problem.

Look, this is the source for the plugin: https://github.com/ajaxboy/cjax/blob/5.9...ination.js
At around line 92, it passes the parameters, if you want to change it there is where you'd do it.
 eg:   url + '/' + page + '/' +$options.numberOfItems


then in your $options array in the your php, just add 'numberOfItems' to the list, and you are good to go...

I hope that sounds easy...
Reply
#13

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
Reply
#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




Theme © iAndrew 2016 - Forum software by © MyBB